]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop honggfuzz `arbitrary` dependency to meet MSRV 2022-08-fuzz-msrv
authorMatt Corallo <git@bluematt.me>
Tue, 30 Aug 2022 04:03:47 +0000 (04:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 Aug 2022 15:15:00 +0000 (15:15 +0000)
fuzz/Cargo.toml
fuzz/ci-fuzz.sh
lightning-invoice/fuzz/Cargo.toml
lightning-invoice/fuzz/ci-fuzz.sh

index be37fb83cdddbbe48034c6bfb990762c299aa9b3..95308e1bf5c3ae2f81db847b08abcc2690796c7c 100644 (file)
@@ -22,7 +22,7 @@ lightning = { path = "../lightning", features = ["regex"] }
 lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
 bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] }
 hex = "0.3"
-honggfuzz = { version = "0.5", optional = true }
+honggfuzz = { version = "0.5", optional = true, default-features = false }
 libfuzzer-sys = { version = "0.4", optional = true }
 
 [build-dependencies]
index 6f0074b6a1a0d44ea889d8759fd3d7fde037e950..969505ca88d1bf1e227fd1eeee73c26c13dea741 100755 (executable)
@@ -13,7 +13,7 @@ rm *_target.rs
 [ "$(git diff)" != "" ] && exit 1
 popd
 
-cargo install --color always --force honggfuzz
+cargo install --color always --force honggfuzz --no-default-features
 sed -i 's/lto = true//' Cargo.toml
 HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz build
 for TARGET in src/bin/*.rs; do
index 833606c1ad83eea553af28d9d780639093e249a9..6f79757c22bb810d574a0438003b70ee76444e6b 100644 (file)
@@ -12,7 +12,7 @@ afl_fuzz = ["afl"]
 honggfuzz_fuzz = ["honggfuzz"]
 
 [dependencies]
-honggfuzz = { version = "0.5", optional = true }
+honggfuzz = { version = "0.5", optional = true, default-features = false }
 afl = { version = "0.4", optional = true }
 lightning-invoice = { path = ".." }
 lightning = { path = "../../lightning", features = ["regex"] }
index ae85ea91301283a5a6765949f361deaba9986304..db1b9eb388c5231d58dbb0e9d03e338f40b2c8e6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-cargo install --force honggfuzz
+cargo install --force honggfuzz --no-default-features
 for TARGET in fuzz_targets/*; do
     FILENAME=$(basename $TARGET)
        FILE="${FILENAME%.*}"