Skip to content

cgojin/wasm-memory-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-memory

Webassembly memory management with Rust.

# Add wasm32-unknown-unknown target, first only
rustup target add wasm32-unknown-unknown

# Build wasm
cargo build --target wasm32-unknown-unknown

# Run wasm
cargo run --example app

# Run lib
cargo run

# Detect memory leaks on macOS
leaks --atExit -- target/debug/wasm-memory
leaks --atExit -- target/debug/examples/app

# Detect memory leaks on Linux
valgrind target/debug/wasm-memory
valgrind target/debug/examples/app

About

Webassembly memory management with Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages