64 releases (15 stable)
new 7.0.0 | Mar 20, 2023 |
---|---|
6.0.1 | Mar 8, 2023 |
6.0.0 | Feb 20, 2023 |
5.0.1 | Mar 8, 2023 |
0.8.0 | Nov 20, 2019 |
#627 in WebAssembly
37,216 downloads per month
Used in 76 crates
(34 directly)
1MB
19K
SLoC
Crate defining the Wasi
type for Wasmtime, which represents a WASI
instance which may be added to a linker.
lib.rs
:
wasmtime-wasi
now supports using multiple snapshots to interface to the
same WasiCtx
!
wasmtime_wasi::Wasi::new(&Store, WasiCtx)
is a struct which owns your
WasiCtx
and provides linkage to every available snapshot.
Individual snapshots are available through
wasmtime_wasi::snapshots::preview_{0, 1}::Wasi::new(&Store, Rc<RefCell<WasiCtx>>)
.
Dependencies
~13–20MB
~410K SLoC