mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
d4297ad2d3
This has now been stabilized!
14 lines
179 B
Rust
14 lines
179 B
Rust
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
pub fn foo() -> &u32 {}
|
|
|
|
#[wasm_bindgen]
|
|
extern "C" {
|
|
fn foo(Foo(x): Foo);
|
|
|
|
fn foo() -> &u32;
|
|
}
|