mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 05:59:21 +03:00
14 lines
201 B
Rust
14 lines
201 B
Rust
#![crate_type = "rlib"]
|
|
|
|
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
extern "C" {
|
|
type Foo;
|
|
|
|
#[wasm_bindgen(method, structural, final)]
|
|
fn bar(this: &Foo);
|
|
}
|