X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c-bindings-gen%2Fsrc%2Fmain.rs;h=e8d249930faface8b3c2190ac16146ee943d406c;hb=HEAD;hp=12d0772fbb496fab0c8522f04119a8c7a19bd408;hpb=05c3f9db0d834732d521999d7def4287f3c2aa17;p=ldk-c-bindings diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 12d0772..26c6370 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -2102,9 +2102,7 @@ fn convert_file<'a, 'b>(libast: &'a FullLibraryAST, crate_types: &CrateTypes<'a> // TODO: We need to map deny(missing_docs) in the source crate(s) //writeln!(out, "#![deny(missing_docs)]").unwrap(); - writeln!(out, "#![cfg_attr(not(feature = \"std\"), no_std)]").unwrap(); - writeln!(out, "#[cfg(not(any(feature = \"std\", feature = \"no-std\")))]").unwrap(); - writeln!(out, "compile_error!(\"at least one of the `std` or `no-std` features must be enabled\");").unwrap(); + writeln!(out, "#![cfg_attr(feature = \"no-std\", no_std)]").unwrap(); writeln!(out, "extern crate alloc;").unwrap(); writeln!(out, "pub mod version;").unwrap();