mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Expose test_utils to fuzztarget (in addition to _test_utils feature)
This commit is contained in:
parent
45d4d26987
commit
c07b4de983
4 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ Still missing tons of error-handling. See GitHub issues for suggested projects i
|
|||
"""
|
||||
|
||||
[features]
|
||||
fuzztarget = ["bitcoin/fuzztarget"]
|
||||
fuzztarget = ["bitcoin/fuzztarget", "regex"]
|
||||
# Internal test utilities exposed to other repo crates
|
||||
_test_utils = ["hex", "regex"]
|
||||
# Unlog messages superior at targeted level.
|
||||
|
|
|
@ -56,7 +56,7 @@ use std::io::Error;
|
|||
|
||||
/// An update generated by the underlying Channel itself which contains some new information the
|
||||
/// ChannelMonitor should be made aware of.
|
||||
#[cfg_attr(any(test, feature = "_test_utils"), derive(PartialEq))]
|
||||
#[cfg_attr(any(test, feature = "fuzztarget", feature = "_test_utils"), derive(PartialEq))]
|
||||
#[derive(Clone)]
|
||||
#[must_use]
|
||||
pub struct ChannelMonitorUpdate {
|
||||
|
@ -485,7 +485,7 @@ enum OnchainEvent {
|
|||
const SERIALIZATION_VERSION: u8 = 1;
|
||||
const MIN_SERIALIZATION_VERSION: u8 = 1;
|
||||
|
||||
#[cfg_attr(any(test, feature = "_test_utils"), derive(PartialEq))]
|
||||
#[cfg_attr(any(test, feature = "fuzztarget", feature = "_test_utils"), derive(PartialEq))]
|
||||
#[derive(Clone)]
|
||||
pub(crate) enum ChannelMonitorUpdateStep {
|
||||
LatestHolderCommitmentTXInfo {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
extern crate bitcoin;
|
||||
#[cfg(any(test, feature = "_test_utils"))] extern crate hex;
|
||||
#[cfg(any(test, feature = "_test_utils"))] extern crate regex;
|
||||
#[cfg(any(test, feature = "fuzztarget", feature = "_test_utils"))] extern crate regex;
|
||||
|
||||
#[macro_use]
|
||||
pub mod util;
|
||||
|
|
|
@ -32,7 +32,7 @@ pub(crate) mod macro_logger;
|
|||
pub mod logger;
|
||||
pub mod config;
|
||||
|
||||
#[cfg(any(test, feature = "_test_utils"))]
|
||||
#[cfg(any(test, feature = "fuzztarget", feature = "_test_utils"))]
|
||||
pub mod test_utils;
|
||||
|
||||
/// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
|
||||
|
|
Loading…
Add table
Reference in a new issue