mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-27 06:32:17 +00:00
13 lines
183 B
Rust
13 lines
183 B
Rust
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen(module = "tests/wasm/duplicate_deps.js")]
|
|
extern "C" {
|
|
fn foo(x: u32);
|
|
}
|
|
|
|
pub fn test() {
|
|
foo(10);
|
|
}
|