Created
May 12, 2020 09:17
-
-
Save Hywan/a45f55f13f3be563f5cf95a0bb11f14c to your computer and use it in GitHub Desktop.
Simple Rust program that will compile to WebAssembly to be executed in Java
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