Skip to content

Instantly share code, notes, and snippets.

Created Jan 21, 2019
What would you like to do?
Wasmer Wasm Sample App
// Defines functions to import from "env" namespace
extern "C" {
fn print_str(ptr: *const u8, len: usize);
pub extern fn hello_wasm(){
let message = "Hello World";
unsafe {
print_str(message.as_ptr(), message.len());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment