From 77c085d9ee5d0117df3e4ec21ee7d1ebc47a12d7 Mon Sep 17 00:00:00 2001 From: Armin Sabouri Date: Thu, 1 May 2025 13:44:45 -0400 Subject: [PATCH] Export `Display` for Address `std::fmt::Display` impls are not exported automatically. Display is exported to the foreign language when decorated with `#[uniffi::export(Display)]`. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index cd68c0c..157efd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ mod macros; pub mod error; #[derive(Debug, Clone, PartialEq, Eq, uniffi::Object)] +#[uniffi::export(Display)] pub struct Address(bitcoin::Address); #[uniffi::export]