Skip to content

mondradiko/rust-wad-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rust-wad-examples

Getting Started

Rust WebAssembly Target

Ensure that a WebAssembly target for Rust is installed. wasm32-wasi is useful for debugging because it can log to the console, while wasm32-unknown-unknown works for making minimal, standalone WebAssembly modules. Either can be used in the following commands.

$ rustup target install wasm32-wasi

Building

To build:

$ cargo build --target wasm32-wasi --release

Testing

Wasmtime is used as the WebAssembly runtime to test it here, but Wasmer and WAVM can also be used with very similar syntax.

To test:

$ wasmtime run --invoke wad_main target/wasm32-wasi/release/rust_wad_examples.wasm

License

Battle Damaged Sci-fi Helmet - PBR by theblueturtle_, published under a Creative Commons Attribution-NonCommercial license

https://sketchfab.com/models/b81008d513954189a063ff901f7abfe4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages