Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
implement wasi using wasmtime-bindings-*
  • Loading branch information
yurydelendik committed Nov 11, 2019
commit 8f7ce5af7ac6f7950ccbf0a58ac108d3ec255d2c
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ cranelift-entity = { version = "0.49", features = ["enable-serde"] }
cranelift-wasm = { version = "0.49", features = ["enable-serde"] }
cranelift-native = "0.49"
wasmtime = { path = "crates/api" }
wasmtime-bindings-common = { path = "crates/bindings-common" }
wasmtime-bindings-macro = { path = "crates/bindings-macro" }
wasmtime-bindings = { path = "crates/bindings" }
wasmtime-bindings-macro = { path = "crates/bindings/macro" }
wasmtime-debug = { path = "crates/debug" }
wasmtime-environ = { path = "crates/environ" }
wasmtime-interface-types = { path = "crates/interface-types" }
Expand Down
2 changes: 2 additions & 0 deletions crates/wasi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ edition = "2018"
wasmtime-runtime = { path = "../runtime" }
wasmtime-environ = { path = "../environ" }
wasmtime-jit = { path = "../jit" }
wasmtime-bindings = { path = "../bindings" }
wasmtime-bindings-macro = { path = "../bindings/macro" }
wasi-common = { path = "../wasi-common" }
cranelift-codegen = { version = "0.49", features = ["enable-serde"] }
cranelift-entity = { version = "0.49", features = ["enable-serde"] }
Expand Down
6 changes: 6 additions & 0 deletions crates/wasi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@ extern crate alloc;

mod instantiate;
mod syscalls;
mod r#trait;
mod trait_impl;

#[macro_use]
extern crate wasmtime_bindings_macro;
pub use instantiate::{instantiate_wasi, instantiate_wasi_with_context};
pub use r#trait::{wasi_mod, Wasi};
pub use trait_impl::instantiate_wasi2;
Loading