99 releases (50 stable)
new 18.0.3 | Mar 12, 2024 |
---|---|
17.0.2 | Feb 28, 2024 |
16.0.0 | Dec 20, 2023 |
15.0.1 | Dec 1, 2023 |
0.8.0 | Nov 20, 2019 |
#1040 in WebAssembly
77,984 downloads per month
Used in 147 crates
(60 directly)
1.5MB
30K
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
~8–26MB
~430K SLoC