From: Matt Corallo Date: Mon, 1 Nov 2021 22:01:57 +0000 (+0000) Subject: Add `(C-not exported)` tags as required in tuple types X-Git-Tag: v0.0.103~1^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0c1b70c16193acee843d823c74d2839b6cea32f6;p=rust-lightning Add `(C-not exported)` tags as required in tuple types This prepares us for C bindings auto-exporting tuple type fields. --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 3492b74f..04ba08bd 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -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 /// diff --git a/lightning/src/util/logger.rs b/lightning/src/util/logger.rs index 01b02406..2717effb 100644 --- a/lightning/src/util/logger.rs +++ b/lightning/src/util/logger.rs @@ -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> {