Hard-code dependent crate feature flags
[ldk-c-bindings] / lightning-c-bindings / src / lib.rs
index 53abe8ad960a8159d9703405f6a8e982c169a8c5..f4d957dc87f558620f8787639240d77476f27d6a 100644 (file)
@@ -16,9 +16,7 @@
 #![allow(unused_parens)]
 #![allow(unused_unsafe)]
 #![allow(unused_braces)]
-#![cfg_attr(not(feature = "std"), no_std)]
-#[cfg(not(any(feature = "std", feature = "no-std")))]
-compile_error!("at least one of the `std` or `no-std` features must be enabled");
+#![cfg_attr(feature = "no-std", no_std)]
 extern crate alloc;
 pub mod version;
 pub mod c_types;