Skip to content

Commit 47a657a

Browse files
committed
Ensure we build if a downstream crate sets --cfg=fuzzing
Downstream crates building fur fuzzing will usually set `--cfg=fuzzing` as a side-effect of the Rust fuzzing tooling. Thus, we should ensure we build without failure in such cases.
1 parent ba342de commit 47a657a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,10 @@ features = ["bitcoinconsensus", "secp-recovery"]
6161
[target.'cfg(ldk_bench)'.dependencies]
6262
criterion = { version = "0.4", optional = true, default-features = false }
6363

64+
# Downstream crates building for fuzzing will usually set --cfg=fuzzing,
65+
# so we ensure build doesn't fail by taking the regex dependency explicitly.
66+
[target.'cfg(fuzzing)'.dependencies]
67+
regex = { version = "1.5.6" }
68+
6469
[target.'cfg(taproot)'.dependencies]
6570
musig2 = { git = "https://github.com/arik-so/rust-musig2", rev = "27797d7" }

0 commit comments

Comments
 (0)