Skip to content

Commit 8c9a484

Browse files
authored
Merge pull request #574 from tnull/2025-06-add-ffi-trait-exports-backport
Export trait impls in FFI (backport for `release/0.6`)
2 parents 0d0e09f + c7eb471 commit 8c9a484

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

bindings/ldk_node.udl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ dictionary RouteHintHop {
715715
RoutingFees fees;
716716
};
717717

718+
[Traits=(Debug, Display, Eq)]
718719
interface Bolt11Invoice {
719720
[Throws=NodeError, Name=from_str]
720721
constructor([ByRef] string invoice_str);

src/payment/unified_qr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ impl UnifiedQrPayment {
186186
/// [BIP 21]: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki
187187
/// [`PaymentId`]: lightning::ln::channelmanager::PaymentId
188188
/// [`Txid`]: bitcoin::hash_types::Txid
189+
#[derive(Debug)]
189190
pub enum QrPaymentResult {
190191
/// An on-chain payment.
191192
Onchain {

src/uniffi_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ impl From<lightning::routing::router::RouteHintHop> for RouteHintHop {
467467
/// Represents a syntactically and semantically correct lightning BOLT11 invoice.
468468
#[derive(Debug, Clone, PartialEq, Eq)]
469469
pub struct Bolt11Invoice {
470-
pub inner: LdkBolt11Invoice,
470+
pub(crate) inner: LdkBolt11Invoice,
471471
}
472472

473473
impl Bolt11Invoice {

0 commit comments

Comments
 (0)