Skip to content

Commit d1c71e3

Browse files
committed
Add build error if both std and no-std features disabled
1 parent 1781af3 commit d1c71e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ compile_error!(
9090
"rust-miniscript currently only supports architectures with pointers wider than 16 bits"
9191
);
9292

93+
#[cfg(not(any(feature = "std", feature = "no-std")))]
94+
compile_error!("at least one of the `std` or `no-std` features must be enabled");
95+
9396
pub use bitcoin;
9497

9598
#[cfg(not(feature = "std"))]

0 commit comments

Comments
 (0)