From: Matt Corallo Date: Mon, 29 Mar 2021 17:50:42 +0000 (-0400) Subject: Make c_types module pub as its contents are exposed to C X-Git-Tag: v0.0.98~18^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e8c40b6f04f3b55cd305c7ad88b07dec23a84c4e;p=ldk-c-bindings Make c_types module pub as its contents are exposed to C This makes our `[deny(missing_docs)]` annotation effective --- diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index dfbcb85..1d37bb2 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -1374,8 +1374,8 @@ fn convert_file<'a, 'b>(libast: &'a FullLibraryAST, crate_types: &mut CrateTypes writeln!(out, "#![allow(unused_unsafe)]").unwrap(); writeln!(out, "#![allow(unused_braces)]").unwrap(); writeln!(out, "#![deny(missing_docs)]").unwrap(); - writeln!(out, "mod c_types;").unwrap(); - writeln!(out, "mod bitcoin;").unwrap(); + writeln!(out, "pub mod c_types;").unwrap(); + writeln!(out, "pub mod bitcoin;").unwrap(); } else { writeln!(out, "\nuse std::ffi::c_void;\nuse bitcoin::hashes::Hash;\nuse crate::c_types::*;\n").unwrap(); }