mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-22 10:21:20 +00:00
11 lines
189 B
Rust
11 lines
189 B
Rust
|
#![feature(proc_macro, wasm_custom_section, wasm_import_module)]
|
||
|
|
||
|
extern crate wasm_bindgen;
|
||
|
|
||
|
use wasm_bindgen::prelude::*;
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub fn add(a: u32, b: u32) -> u32 {
|
||
|
a + b
|
||
|
}
|