Skip to content

Commit

Permalink
Remove async from features (#358)
Browse files Browse the repository at this point in the history
Remove async feature from host-rust crates as it no longer available.
Relates #307.
  • Loading branch information
etehtsea authored Oct 6, 2022
1 parent 670e3ac commit 45604f5
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/gen-host-wasmtime-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ anyhow = { workspace = true }
test-helpers = { path = '../test-helpers', features = ['host-wasmtime-rust'] }
wasmtime = { workspace = true }
wasmtime-wasi = { workspace = true }
wit-bindgen-host-wasmtime-rust = { workspace = true, features = ['tracing', 'async'] }
wit-bindgen-host-wasmtime-rust = { workspace = true, features = ['tracing'] }
1 change: 0 additions & 1 deletion crates/host-wasmtime-rust-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ wit-bindgen-gen-host-wasmtime-rust = { workspace = true }

[features]
tracing = []
async = []
5 changes: 0 additions & 5 deletions crates/host-wasmtime-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ thiserror = "1.0"
wasmtime = { workspace = true }
wit-bindgen-host-wasmtime-rust-macro = { path = "../host-wasmtime-rust-macro", version = "0.2" }
tracing-lib = { version = "0.1.26", optional = true, package = 'tracing' }
async-trait = { version = "0.1.50", optional = true }

[features]
# Enables generated code to emit events via the `tracing` crate whenever wasm is
# entered and when native functions are called. Note that tracing is currently
# only done for imported functions.
tracing = ['tracing-lib', 'wit-bindgen-host-wasmtime-rust-macro/tracing']

# Enables async support for generated code, although when enabled this still
# needs to be configured through the macro invocation.
async = ['async-trait', 'wit-bindgen-host-wasmtime-rust-macro/async']
2 changes: 0 additions & 2 deletions crates/host-wasmtime-rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
pub use wit_bindgen_host_wasmtime_rust_macro::{export, import};

#[cfg(feature = "async")]
pub use async_trait::async_trait;
#[cfg(feature = "tracing-lib")]
pub use tracing_lib as tracing;
#[doc(hidden)]
Expand Down

0 comments on commit 45604f5

Please sign in to comment.