diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9be38218a..9db3d2d65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -196,6 +196,7 @@ jobs: - run: cargo build --target wasm32-wasip1 -p wit-bindgen --no-default-features --features macros,realloc - run: cargo build --target wasm32-wasip1 -p wit-bindgen --no-default-features --features async - run: cargo build --target wasm32-wasip1 -p wit-bindgen --no-default-features --features async-spawn + - run: cargo build --target wasm32-wasip1 -p wit-bindgen --no-default-features --features async,macros # Verity that documentation can be generated for the rust bindings crate. - run: rustup update nightly --no-self-update diff --git a/crates/guest-rust/Cargo.toml b/crates/guest-rust/Cargo.toml index 040ebf90f..08fde4159 100644 --- a/crates/guest-rust/Cargo.toml +++ b/crates/guest-rust/Cargo.toml @@ -29,7 +29,7 @@ default = ["macros", "realloc", "async", "std", "bitflags"] macros = ["dep:wit-bindgen-rust-macro"] realloc = [] std = [] -async = ["macros", "std", "wit-bindgen-rust-macro/async"] +async = ["std", "wit-bindgen-rust-macro?/async"] bitflags = ["dep:bitflags"] async-spawn = ['async', 'dep:futures']