Skip to content

Instantly share code, notes, and snippets.

@Hywan
Last active April 3, 2019 07:46
Show Gist options
  • Save Hywan/8ba166757f59a959209ccd5a80189099 to your computer and use it in GitHub Desktop.
Save Hywan/8ba166757f59a959209ccd5a80189099 to your computer and use it in GitHub Desktop.
Wasm examples, Rust part
#[no_mangle]
pub extern fn sum(x: i32, y: i32) -> i32 {
x + y
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment