mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 14:31:45 +03:00
d4297ad2d3
This has now been stabilized!
16 lines
203 B
Rust
16 lines
203 B
Rust
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen(x)]
|
|
pub fn foo() {}
|
|
|
|
#[wasm_bindgen]
|
|
extern "C" {
|
|
#[wasm_bindgen(y)]
|
|
fn bar();
|
|
|
|
#[wasm_bindgen { }]
|
|
fn bar();
|
|
}
|