Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Fix bench-api dependency cargo features (#15274)

Nick Fitzgeraldffbf0e0c1399
diff --git a/crates/bench-api/Cargo.toml b/crates/bench-api/Cargo.toml
index 7256e895a3..12786f8d4f 100644
--- a/crates/bench-api/Cargo.toml
+++ b/crates/bench-api/Cargo.toml
@@ -23,9 +23,24 @@ shuffling-allocator = { version = "1.1.1", optional = true }
target-lexicon = { workspace = true }
wasmtime = { workspace = true, default-features = true, features = ["winch", "pulley"] }
wasmtime-cli-flags = { workspace = true, default-features = true, features = [
+ "clap",
+ # Forward the same `wasmtime` features enabled above, so that the
+ # corresponding CLI flags are not silently ignored (e.g. `-C
+ # parallel-compilation=n`). The cache is controlled by `WasmBenchConfig`
+ # instead of a flag, so we deliberately leave out `cache`.
+ "async",
+ "component-model",
+ "component-model-async",
+ "coredump",
"cranelift",
+ "debug",
"gc",
- "clap",
+ "parallel-compilation",
+ "pooling-allocator",
+ "pulley",
+ "runtime",
+ "stack-switching",
+ "threads",
] }
wasmtime-wasi = { workspace = true, features = ['p1', 'p2'] }
wasmtime-wasi-nn = { workspace = true, optional = true }