Created
August 28, 2019 14:27
-
-
Save Hywan/f94260e93d32b7426c05475b13428f1a to your computer and use it in GitHub Desktop.
Simple Rust program that compiles to WebAssembly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[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