Skip to content

Commit 91eb50b

Browse files
committed
fuzz: add lint to generate-files.sh
In rust-bitcoin#2785 I modified fuzz/Cargo.toml without updating the Cargo.toml generating script. Oops. Fix that.
1 parent 613f1fb commit 91eb50b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

fuzz/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ serde = { version = "1.0.103", features = [ "derive" ] }
1717
serde_json = "1.0"
1818
serde_cbor = "0.9"
1919

20+
[lints.rust]
21+
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(fuzzing)'] }
22+
2023
[[bin]]
2124
name = "bitcoin_deserialize_address"
2225
path = "fuzz_targets/bitcoin/deserialize_address.rs"
@@ -88,6 +91,3 @@ path = "fuzz_targets/hashes/sha512.rs"
8891
[[bin]]
8992
name = "units_deserialize_amount"
9093
path = "fuzz_targets/units/deserialize_amount.rs"
91-
92-
[lints.rust]
93-
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(fuzzing)'] }

fuzz/generate-files.sh

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ bitcoin = { path = "../bitcoin", features = [ "serde" ] }
2828
serde = { version = "1.0.103", features = [ "derive" ] }
2929
serde_json = "1.0"
3030
serde_cbor = "0.9"
31+
32+
[lints.rust]
33+
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(fuzzing)'] }
3134
EOF
3235

3336
for targetFile in $(listTargetFiles); do

0 commit comments

Comments
 (0)