Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and refactor the
wasmi_wasi
crate (#700)
* bump wasmi_wasi version * refactor the wasmi_wasi crate It now mirrors the API of the wasmtime_wasi crate. * update changelog
- Loading branch information
Showing
10 changed files
with
767 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
//! This crate provides support for WASI `preview1` for the `wasmi` interpreter. | ||
//! | ||
//! Use [`add_to_linker`] to add all supported WASI definitions to the `wasmi` linker. | ||
|
||
mod guest_memory; | ||
pub mod snapshots; | ||
|
||
#[cfg(feature = "sync")] | ||
pub mod sync; | ||
|
||
pub use self::guest_memory::WasmiGuestMemory; | ||
pub use snapshots::preview_1::define_wasi; | ||
pub use wasi_cap_std_sync::{ | ||
ambient_authority, | ||
clocks, | ||
file::{filetype_from, get_fd_flags, File}, | ||
net, | ||
sched, | ||
stdio, | ||
Dir, | ||
TcpListener, | ||
WasiCtxBuilder, | ||
}; | ||
pub use wasi_common::{Error, WasiCtx, WasiDir, WasiFile}; | ||
pub use wasmi::Linker; | ||
|
||
/// Sync mode is the "default" of this crate, so we also export it at the top level. | ||
#[cfg(feature = "sync")] | ||
pub use sync::*; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//! Re-export the commonly used wasi-cap-std-sync crate here. This saves | ||
//! consumers of this library from having to keep additional dependencies | ||
//! in sync. | ||
|
||
pub mod snapshots; | ||
|
||
pub use wasi_cap_std_sync::*; | ||
|
||
#[doc(inline)] | ||
pub use self::snapshots::preview_1::add_wasi_snapshot_preview1_to_linker as add_to_linker; |
File renamed without changes.
Oops, something went wrong.