mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Migrate rest of dependencies
test to wasm
This commit is contained in:
14
tests/crates/b/src/lib.rs
Normal file
14
tests/crates/b/src/lib.rs
Normal file
@ -0,0 +1,14 @@
|
||||
#![feature(use_extern_macros)]
|
||||
|
||||
extern crate wasm_bindgen;
|
||||
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen(module = "tests/wasm/duplicate_deps.js", version = "*")]
|
||||
extern {
|
||||
fn foo(x: u32);
|
||||
}
|
||||
|
||||
pub fn test() {
|
||||
foo(10);
|
||||
}
|
Reference in New Issue
Block a user