Ensure we build if a downstream crate sets `--cfg=fuzzing` 2023-06-fix-fuzz-dep
authorMatt Corallo <git@bluematt.me>
Tue, 20 Jun 2023 17:14:21 +0000 (17:14 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 20 Jun 2023 23:22:15 +0000 (23:22 +0000)
commite49a1ba96ddf16cfc7aa027f7b56a50cd9a3e16a
treebd18fe10558036c431e5d581c7a802b872072fa3
parentba342de241f0b5e968d6ad0106e5690e7c9c68bc
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.

We do this here by simply relying on the `_test_utils` feature,
rather than conditionally-compiling in modules based on the
`fuzzing` flag.
lightning/src/chain/chainmonitor.rs
lightning/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/mod.rs
lightning/src/util/test_utils.rs