diff --git a/lightning-types/src/features.rs b/lightning-types/src/features.rs index 54587dc98..a3cb9db2f 100644 --- a/lightning-types/src/features.rs +++ b/lightning-types/src/features.rs @@ -703,6 +703,8 @@ impl InitFeatures { #[doc(hidden)] /// Converts `InitFeatures` to `Features`. Only known `InitFeatures` relevant to context `C` /// are included in the result. + /// + /// This is not exported to bindings users as it shouldn't be used outside of LDK pub fn to_context(&self) -> Features { self.to_context_internal() } @@ -712,6 +714,8 @@ impl Bolt11InvoiceFeatures { #[doc(hidden)] /// Converts `Bolt11InvoiceFeatures` to `Features`. Only known `Bolt11InvoiceFeatures` relevant to /// context `C` are included in the result. + /// + /// This is not exported to bindings users as it shouldn't be used outside of LDK pub fn to_context(&self) -> Features { self.to_context_internal() } @@ -737,6 +741,8 @@ impl Bolt12InvoiceFeatures { #[doc(hidden)] /// Converts [`Bolt12InvoiceFeatures`] to [`Features`]. Only known [`Bolt12InvoiceFeatures`] /// relevant to context `C` are included in the result. + /// + /// This is not exported to bindings users as it shouldn't be used outside of LDK pub fn to_context(&self) -> Features { self.to_context_internal() } @@ -744,8 +750,10 @@ impl Bolt12InvoiceFeatures { impl ChannelTypeFeatures { #[doc(hidden)] - // Maps the relevant `InitFeatures` to `ChannelTypeFeatures`. Any unknown features to - // `ChannelTypeFeatures` are not included in the result. + /// Maps the relevant `InitFeatures` to `ChannelTypeFeatures`. Any unknown features to + /// `ChannelTypeFeatures` are not included in the result. + /// + /// This is not exported to bindings users as it shouldn't be used outside of LDK pub fn from_init(init: &InitFeatures) -> Self { let mut ret = init.to_context_internal(); // ChannelTypeFeatures must only contain required bits, so we OR the required forms of all diff --git a/lightning/src/io/mod.rs b/lightning/src/io/mod.rs index 2f742e242..a46b8c669 100644 --- a/lightning/src/io/mod.rs +++ b/lightning/src/io/mod.rs @@ -1,6 +1,9 @@ pub use bitcoin::io::*; /// Emulation of std::io::Cursor +/// +/// This is not exported to bindings users as serialization is done via a bindings-specific +/// pipeline. #[derive(Clone, Debug, Default, Eq, PartialEq)] pub struct Cursor { inner: T,