mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
18 lines
228 B
Rust
18 lines
228 B
Rust
#![crate_type = "rlib"]
|
|
|
|
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();
|
|
}
|