Rust runtime
Rust WASM runtime built with the wasm32-wasip1 target
Kumar Anirudha
Table of content
At a glance
| Compiler | rustc 1.82.0 |
| Target | wasm32-wasip1 |
| Available versions | 1.82 |
| Binary size | ~76 KB (post wasm-opt -O3) |
| License | MIT/Apache-2.0 |
| Source | https://www.rust-lang.org/ |
Capabilities
- Full
stdlibrary - Filesystem
- Environment + args
- Standard I/O
Limitations
- No threading on
wasip1(single-threaded only) - No
std::netsocket support yet (waiting on WASI networking) - Async works with single-threaded executors (
futures::executor::block_on, custom runtimes)
Install
wasmhub get rust 1.82
Use from Rust
use wasmhub::{RuntimeLoader, Language};
let loader = RuntimeLoader::new()?;
let rust = loader.get_runtime(Language::Rust, "1.82").await?;