Skip to content

Commit 16ee7c6

Browse files
committed
Expose test_utils to fuzztarget (in addition to _test_utils feature)
1 parent a3a06f6 commit 16ee7c6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lightning/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Still missing tons of error-handling. See GitHub issues for suggested projects i
1111
"""
1212

1313
[features]
14-
fuzztarget = ["bitcoin/fuzztarget"]
14+
fuzztarget = ["bitcoin/fuzztarget", "regex"]
1515
_test_utils = ["hex", "regex"]
1616
# Unlog messages superior at targeted level.
1717
max_level_off = []

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ use std::io::Error;
5757

5858
/// An update generated by the underlying Channel itself which contains some new information the
5959
/// ChannelMonitor should be made aware of.
60-
#[cfg_attr(any(test, feature = "_test_utils"), derive(PartialEq))]
60+
#[cfg_attr(any(test, feature = "fuzztarget", feature = "_test_utils"), derive(PartialEq))]
6161
#[derive(Clone)]
6262
#[must_use]
6363
pub struct ChannelMonitorUpdate {
@@ -485,7 +485,7 @@ enum OnchainEvent {
485485
const SERIALIZATION_VERSION: u8 = 1;
486486
const MIN_SERIALIZATION_VERSION: u8 = 1;
487487

488-
#[cfg_attr(any(test, feature = "_test_utils"), derive(PartialEq))]
488+
#[cfg_attr(any(test, feature = "fuzztarget", feature = "_test_utils"), derive(PartialEq))]
489489
#[derive(Clone)]
490490
pub(crate) enum ChannelMonitorUpdateStep {
491491
LatestHolderCommitmentTXInfo {

lightning/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
extern crate bitcoin;
3131
#[cfg(any(test, feature = "_test_utils"))] extern crate hex;
32-
#[cfg(any(test, feature = "_test_utils"))] extern crate regex;
32+
#[cfg(any(test, feature = "fuzztarget", feature = "_test_utils"))] extern crate regex;
3333

3434
#[macro_use]
3535
pub mod util;

lightning/src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(crate) mod macro_logger;
3232
pub mod logger;
3333
pub mod config;
3434

35-
#[cfg(any(test, feature = "_test_utils"))]
35+
#[cfg(any(test, feature = "fuzztarget", feature = "_test_utils"))]
3636
pub mod test_utils;
3737

3838
/// impls of traits that add exra enforcement on the way they're called. Useful for detecting state

0 commit comments

Comments
 (0)