Skip to content

Commit

Permalink
Make anyhow non-optional for wasm-smith
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 10, 2024
1 parent 882dadc commit ef06135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/wasm-smith/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ harness = false
workspace = true

[dependencies]
anyhow = { workspace = true, optional = true }
anyhow = { workspace = true }
arbitrary = { workspace = true, features = ["derive"] }
clap = { workspace = true, optional = true }
flagset = "0.4"
Expand All @@ -42,5 +42,5 @@ wat = { path = "../wat" }
libfuzzer-sys = { workspace = true }

[features]
_internal_cli = ["anyhow", "clap", "flagset/serde", "serde", "serde_derive", "wasmparser", "wat"]
_internal_cli = ["clap", "flagset/serde", "serde", "serde_derive", "wasmparser", "wat"]
wasmparser = ['dep:wasmparser', 'wasm-encoder/wasmparser']
2 changes: 1 addition & 1 deletion crates/wasm-smith/tests/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn smoke_test_ensure_termination() {
rng.fill_bytes(&mut buf);
let u = Unstructured::new(&buf);
if let Ok(mut module) = Module::arbitrary_take_rest(u) {
module.ensure_termination(10);
module.ensure_termination(10).unwrap();
let wasm_bytes = module.to_bytes();

let mut validator = Validator::new_with_features(wasm_features());
Expand Down

0 comments on commit ef06135

Please sign in to comment.