mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 14:02:06 +03:00
16 lines
204 B
Rust
16 lines
204 B
Rust
#![crate_type = "rlib"]
|
|
|
|
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;
|
|
}
|