47 releases (breaking)
Uses new Rust 2021
0.39.1 | Jul 21, 2022 |
---|---|
0.38.3 | Jul 21, 2022 |
0.35.2 | Mar 31, 2022 |
0.32.0 | Dec 13, 2021 |
0.8.0 | Nov 20, 2019 |
#505 in WebAssembly
24,287 downloads per month
Used in 34 crates
(20 directly)
1MB
17K
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
~10–17MB
~329K SLoC