wasi-cap-std-async is better named wasi-tokio
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "wasi-cap-std-async"
|
||||
name = "wasi-tokio"
|
||||
version = "0.26.0"
|
||||
authors = ["The Wasmtime Project Developers"]
|
||||
description = "WASI implementation in Rust"
|
||||
@@ -15,7 +15,7 @@ build = "build.rs"
|
||||
[dependencies]
|
||||
wasi-common = { path = "../wasi-common", version = "0.26.0" }
|
||||
wasi-cap-std-sync = { path = "../wasi-common/cap-std-sync", version = "0.26.0", optional = true }
|
||||
wasi-cap-std-async = { path = "../wasi-common/cap-std-async", version = "0.26.0", optional = true }
|
||||
wasi-tokio = { path = "../wasi-common/tokio", version = "0.26.0", optional = true }
|
||||
wiggle = { path = "../wiggle", default-features = false, version = "0.26.0" }
|
||||
wasmtime-wiggle = { path = "../wiggle/wasmtime", default-features = false, version = "0.26.0" }
|
||||
wasmtime = { path = "../wasmtime", default-features = false, version = "0.26.0" }
|
||||
@@ -24,4 +24,4 @@ anyhow = "1.0"
|
||||
[features]
|
||||
default = ["sync"]
|
||||
sync = ["wasi-cap-std-sync"]
|
||||
async = ["wasi-cap-std-async", "wasmtime/async", "wasmtime-wiggle/async"]
|
||||
tokio = ["wasi-tokio", "wasmtime/async", "wasmtime-wiggle/async"]
|
||||
|
||||
@@ -18,11 +18,11 @@ pub mod sync {
|
||||
super::define_wasi!(block_on);
|
||||
}
|
||||
|
||||
/// Re-export the wasi-cap-std-async crate here. This saves consumers of this library from having
|
||||
/// Re-export the wasi-tokio crate here. This saves consumers of this library from having
|
||||
/// to keep additional dependencies in sync.
|
||||
#[cfg(feature = "async")]
|
||||
pub mod async_ {
|
||||
pub use wasi_cap_std_async::*;
|
||||
#[cfg(feature = "tokio")]
|
||||
pub mod tokio {
|
||||
pub use wasi_tokio::*;
|
||||
super::define_wasi!(async);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user