fix: Run tests only if the miniscript feature is..

..enabled, enable it by default
This commit is contained in:
Daniela Brozzoni 2024-05-08 14:36:52 +02:00
parent 0e3e136f6f
commit 1d294b734d
No known key found for this signature in database
GPG Key ID: 7DE4F1FDCED0AB87
7 changed files with 13 additions and 1 deletions

View File

@ -26,6 +26,6 @@ rand = "0.8"
proptest = "1.2.0"
[features]
default = ["std"]
default = ["std", "miniscript"]
std = ["bitcoin/std", "miniscript?/std"]
serde = ["serde_crate", "bitcoin/serde", "miniscript?/serde"]

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
mod tx_template;
#[allow(unused_imports)]
pub use tx_template::*;

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
use rand::distributions::{Alphanumeric, DistString};
use std::collections::HashMap;

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
#[macro_use]
mod common;

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
use std::ops::{Bound, RangeBounds};
use bdk_chain::{

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
#[macro_use]
mod common;
use bdk_chain::tx_graph::CalculateFeeError;

View File

@ -1,3 +1,5 @@
#![cfg(feature = "miniscript")]
#[macro_use]
mod common;