Skip to content

Commit 1d294b7

Browse files
fix: Run tests only if the miniscript feature is..
..enabled, enable it by default
1 parent 0e3e136 commit 1d294b7

File tree

7 files changed

+13
-1
lines changed

7 files changed

+13
-1
lines changed

crates/chain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ rand = "0.8"
2626
proptest = "1.2.0"
2727

2828
[features]
29-
default = ["std"]
29+
default = ["std", "miniscript"]
3030
std = ["bitcoin/std", "miniscript?/std"]
3131
serde = ["serde_crate", "bitcoin/serde", "miniscript?/serde"]

crates/chain/tests/common/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
mod tx_template;
24
#[allow(unused_imports)]
35
pub use tx_template::*;

crates/chain/tests/common/tx_template.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
use rand::distributions::{Alphanumeric, DistString};
24
use std::collections::HashMap;
35

crates/chain/tests/test_indexed_tx_graph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
#[macro_use]
24
mod common;
35

crates/chain/tests/test_local_chain.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
use std::ops::{Bound, RangeBounds};
24

35
use bdk_chain::{

crates/chain/tests/test_tx_graph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
#[macro_use]
24
mod common;
35
use bdk_chain::tx_graph::CalculateFeeError;

crates/chain/tests/test_tx_graph_conflicts.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "miniscript")]
2+
13
#[macro_use]
24
mod common;
35

0 commit comments

Comments
 (0)