mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-10 18:11:32 +00:00
.cargo
benchmarks
ci
crates
backend
cli
src
tests
interface-types
reference
add.js
add.rs
add.wat
anyref-empty.js
anyref-empty.rs
anyref-empty.wat
anyref-import-catch.js
anyref-import-catch.rs
anyref-import-catch.wat
anyref-nop.js
anyref-nop.rs
anyref-nop.wat
empty.js
empty.rs
empty.wat
import-catch.js
import-catch.rs
import-catch.wat
interface-types-anyref.rs
interface-types-anyref.wat
interface-types-empty.rs
interface-types-empty.wat
interface-types-integers.rs
interface-types-integers.wat
interface-types-interop.rs
interface-types-interop.wat
interface-types-strings.rs
interface-types-strings.wat
nop.js
nop.rs
nop.wat
string-arg.js
string-arg.rs
string-arg.wat
wasm-bindgen
interface-types.rs
reference.rs
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
cli-support
externref-xform
futures
js-sys
macro
macro-support
multi-value-xform
shared
test
test-macro
threads-xform
typescript-tests
wasm-conventions
wasm-interpreter
web-sys
webidl
webidl-tests
examples
guide
releases
src
tests
.gitattributes
.gitignore
CHANGELOG.md
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
_package.json
azure-pipelines.yml
build.rs
publish.rs
12 lines
168 B
Rust
12 lines
168 B
Rust
![]() |
use wasm_bindgen::prelude::*;
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub fn add_u32(a: u32, b: u32) -> u32 {
|
||
|
a + b
|
||
|
}
|
||
|
|
||
|
#[wasm_bindgen]
|
||
|
pub fn add_i32(a: i32, b: i32) -> i32 {
|
||
|
a + b
|
||
|
}
|