Created
May 12, 2020 09:36
-
-
Save Hywan/a8c104e9c59687d04fb897546dc6020d to your computer and use it in GitHub Desktop.
A 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 return_hello() -> *const u8 { | |
b"Hello, World!\0".as_ptr() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment