]> git.bitcoin.ninja Git - rust-lightning/commitdiff
[UPSTREAM] Expose `ChannelManager` offer constructors in bindings
authorMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 14:35:34 +0000 (14:35 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 13 May 2024 14:42:59 +0000 (14:42 +0000)
lightning/src/ln/channelmanager.rs
lightning/src/offers/offer.rs

index c39818bd432b30e474ae944556b81e7b06961c32..8fb29b394cb2f19d7032e06be6de4adf4c220337 100644 (file)
@@ -8560,8 +8560,6 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => {
        ///
        /// Errors if the parameterized [`Router`] is unable to create a blinded path for the offer.
        ///
-       /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
-       ///
        /// [`Offer`]: crate::offers::offer::Offer
        /// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
        pub fn create_offer_builder(&$self) -> Result<$builder, Bolt12SemanticError> {
@@ -8624,8 +8622,6 @@ macro_rules! create_refund_builder { ($self: ident, $builder: ty) => {
        /// - `amount_msats` is invalid, or
        /// - the parameterized [`Router`] is unable to create a blinded path for the refund.
        ///
-       /// This is not exported to bindings users as builder patterns don't map outside of move semantics.
-       ///
        /// [`Refund`]: crate::offers::refund::Refund
        /// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
        /// [`Bolt12Invoice::payment_paths`]: crate::offers::invoice::Bolt12Invoice::payment_paths
index 2a492fc91becba3f496a4aa33745ae102d2cea19..2b61a55a8a006bfa6828ca3c5e5eb61883347e26 100644 (file)
@@ -163,8 +163,6 @@ pub struct OfferBuilder<'a, M: MetadataStrategy, T: secp256k1::Signing> {
 ///
 /// See [module-level documentation] for usage.
 ///
-/// This is not exported to bindings users as builder patterns don't map outside of move semantics.
-///
 /// [module-level documentation]: self
 #[cfg(c_bindings)]
 pub struct OfferWithExplicitMetadataBuilder<'a> {
@@ -177,8 +175,6 @@ pub struct OfferWithExplicitMetadataBuilder<'a> {
 ///
 /// See [module-level documentation] for usage.
 ///
-/// This is not exported to bindings users as builder patterns don't map outside of move semantics.
-///
 /// [module-level documentation]: self
 #[cfg(c_bindings)]
 pub struct OfferWithDerivedMetadataBuilder<'a> {