You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: uniffi_foreign_handle method is needed in user code for UDL defined traits. #2829
I don't think this is affecting the mozilla/application-services repo as all UDL files where these annotations are being used seem to also using #[uniffi::trait_interface].
I don't love that you need to also use a macro when you're using UDL, but I couldn't figure any other way to do what we needed. Would adding #[uniffi::trait_interface] work for you or is there a bigger issue here?
Activity
bendk commentedon Feb 24, 2026
Wrapping the traits with
#[uniffi::trait_interface]is the official new way (https://mozilla.github.io/uniffi-rs/latest/types/interfaces.html#udl). We should probably update the UDL section of the docs to explain this as well.I don't love that you need to also use a macro when you're using UDL, but I couldn't figure any other way to do what we needed. Would adding
#[uniffi::trait_interface]work for you or is there a bigger issue here?jhugman commentedon Feb 25, 2026
It's right there on the first llne of the CHANGELOG. Apologies.
Closing.
Blessed work around for mozilla/uniffi-rs#2829.
Bump uniffi to 0.30.x (#343)