Add `(C-not exported)` tags as required in tuple types 2021-11-103-bindings
authorMatt Corallo <git@bluematt.me>
Mon, 1 Nov 2021 22:01:57 +0000 (22:01 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 2 Nov 2021 20:50:42 +0000 (20:50 +0000)
This prepares us for C bindings auto-exporting tuple type fields.

lightning-invoice/src/lib.rs
lightning/src/util/logger.rs

index 3492b74f42371803e2dd6c10fa06cce1d94804d3..04ba08bd8552c34379576b59047de719ef200ae3 100644 (file)
@@ -379,7 +379,8 @@ pub enum TaggedField {
 
 /// SHA-256 hash
 #[derive(Clone, Debug, Hash, Eq, PartialEq)]
-pub struct Sha256(pub sha256::Hash);
+pub struct Sha256(/// (C-not exported) as the native hash types are not currently mapped
+       pub sha256::Hash);
 
 /// Description string
 ///
index 01b024065b29240284f507fd4bb3f9501641fecb..2717effb209d94750b1965a28c64a856647f3d80 100644 (file)
@@ -121,6 +121,7 @@ pub trait Logger {
 }
 
 /// Wrapper for logging byte slices in hex format.
+/// (C-not exported) as fmt can't be used in C
 #[doc(hidden)]
 pub struct DebugBytes<'a>(pub &'a [u8]);
 impl<'a> core::fmt::Display for DebugBytes<'a> {