Skip to content

Allow objects to export the Ord trait. - #2583

Merged
mhammond merged 1 commit into
mozilla:mainfrom
mhammond:push-tyxrmzmmzmys
Jul 7, 2025
Merged

mhammond merged 1 commit into
mozilla:mainfrom
mhammond:push-tyxrmzmmzmys

Conversation

@mhammond

Copy link
Copy Markdown
Member

Fixes #2556

@mhammond
mhammond requested a review from a team as a code owner June 29, 2025 21:55
@mhammond
mhammond requested review from badboy and removed request for a team June 29, 2025 21:55
@mhammond
mhammond force-pushed the push-tyxrmzmmzmys branch from 8bddf14 to e29f78b Compare June 30, 2025 00:21

@bendk bendk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't have any comments other than this is awesome, since this is essentially just copying the existing trait handling code.

@mhammond
mhammond force-pushed the push-tyxrmzmmzmys branch from e29f78b to 135e021 Compare July 7, 2025 00:18
@mhammond
mhammond force-pushed the push-tyxrmzmmzmys branch from 135e021 to d361bda Compare July 7, 2025 00:24
@mhammond
mhammond merged commit de83596 into mozilla:main Jul 7, 2025
@mhammond
mhammond deleted the push-tyxrmzmmzmys branch July 7, 2025 01:04
jhugman added a commit to jhugman/uniffi-bindgen-react-native that referenced this pull request Feb 27, 2026
Fixes #316 .

This PR takes inspiration from–but supercedes #322, #333 and #338.

- Fixed test runner `CMakeLists.txt` build to use `hermes/main`.
- ~~Found and filed upstream
mozilla/uniffi-rs#2829.
[Workaround](https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md#%EF%B8%8F-breaking-changes-%EF%B8%8F-2).
- Found and filed upstream
mozilla/uniffi-rs#2828.
- Tests passing for JSI and WASM.

## Changes in [uniffi 0.30
changelog](https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md#%EF%B8%8F-breaking-changes-%EF%B8%8F-2).

- [x] [Implement `UniffiTrait::Ord` in typescript
bindings](mozilla/uniffi-rs#2583)
- [x] [Enums and Records supports uniffi
traits](https://github.com/mozilla/uniffi-rs/pull/2586/changes#diff-525584388b71eb2f5f328ae05791b81b99a6e01a60dc625eec335b2250f9a7b7R332-R336).
    - [x] Flat enums
    - [x] Tagged unions
    - [x] Records
- [x] Handle lifting trait objects coming from Rust: e.g.
[ObjectTemplate.kt](https://github.com/mozilla/uniffi-rs/pull/2586/changes#diff-525584388b71eb2f5f328ae05791b81b99a6e01a60dc625eec335b2250f9a7b7R332-R336)
- [x] CustomTypes for defaults. Test needed to add.
- [x] [CustomTypes as
errors](https://github.com/mozilla/uniffi-rs/pull/2658/changes#diff-12e1c6551f0a758081614fc7d86d90e87b0be4f4b787b677ebdd2809280bbb4f).
- [x] [Interfaces deriving from External
traits](mhammond/uniffi-rs@b54375f#diff-522f0ef157bc0a32453bafd790a9058a35cbb8a721df58a9b51b1ec6b74db5ca)




Closes #322 
Closes #333 
Closes #338
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.

Allow to export the Ord trait for objects

2 participants