From: Matt Corallo Date: Mon, 23 Oct 2023 16:49:49 +0000 (+0000) Subject: Add relevant no-export tags to functions returning builders X-Git-Tag: v0.0.118~2^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=32d2d0f1cfa17fc2d530ce315c55a92350fa46de;p=rust-lightning Add relevant no-export tags to functions returning builders Because we can't map move semantics in most languages, we also can't map our current builders. Thus, we have to mark them no-export. --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index e75b1a927..2bf60cdc7 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -7331,6 +7331,8 @@ where /// Requires a direct connection to the introduction node in the responding [`InvoiceRequest`]'s /// reply path. /// + /// 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( @@ -7384,6 +7386,8 @@ where /// Errors if a duplicate `payment_id` is provided given the caveats in the aforementioned link /// or if `amount_msats` is invalid. /// + /// 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