Skip to content

Conversation

@arminsabouri
Copy link
Contributor

std::fmt::Display impls are not exported automatically. Display is exported to the foreign language when decorated with #[uniffi::export(Display)].

cc @benalleng

`std::fmt::Display` impls are not exported automatically. Display is
exported to the foreign language when decorated with `#[uniffi::export(Display)]`.
Copy link
Contributor

@DanGould DanGould left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 77c085d

Here's the docs for the mechanism https://mozilla.github.io/uniffi-rs/0.27/udl/interfaces.html#exposing-methods-from-standard-rust-traits

This should be done for Display, Eq, Hash, and Debug where possible across types too

Copy link
Member

@thunderbiscuit thunderbiscuit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 77c085d. Thanks!

@thunderbiscuit thunderbiscuit merged commit 77c085d into bitcoindevkit:master May 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants