|
16 | 16 |
|
17 | 17 | ### What's changed?
|
18 | 18 |
|
19 |
| -- The `rust_future_continuation_callback_set` FFI function was removed. `rust_future_poll` now |
20 |
| - inputs the callback pointer. External bindings authors will need to update their code. |
21 |
| -- The object handle FFI has changed. External bindings generators will need to update their code to |
22 |
| - use the new handle system: |
23 |
| - * A single `FfiType::Handle` is used for all object handles. |
24 |
| - * `FfiType::Handle` is always a 64-bit int. |
25 |
| - * Foreign handles must always set the lowest bit of that int. |
| 19 | +- Trait interfaces defined in UDL need to be wrapped with `#[uniffi::trait_interface]`. |
| 20 | +- Trait interfaces performance has been improved. If a trait interface handle is passed across the |
| 21 | + FFI multiple times, UniFFI will only wrap the object once rather than each time it's passed. |
26 | 22 | - The `NoPointer` singleton was renamed to `NoHandle`
|
27 | 23 |
|
28 | 24 | ### What's new?
|
|
34 | 30 | - UDL files can reference types defined in procmacros in this crate - see
|
35 | 31 | [the external types docs](https://mozilla.github.io/uniffi-rs/udl/ext_types.html)
|
36 | 32 |
|
| 33 | +### Breaking changes for external bindings |
| 34 | + |
| 35 | +- The `rust_future_continuation_callback_set` FFI function was removed. `rust_future_poll` now |
| 36 | + inputs the callback pointer. External bindings authors will need to update their code. |
| 37 | +- The object handle FFI has changed. External bindings generators will need to update their code to |
| 38 | + use the new handle system: |
| 39 | + * A single `FfiType::Handle` is used for all object handles. |
| 40 | + * `FfiType::Handle` is always a 64-bit int. |
| 41 | + * Foreign handles must always set the lowest bit of that int. |
| 42 | + |
37 | 43 | [All changes in [[UnreleasedUniFFIVersion]]](https://github.com/mozilla/uniffi-rs/compare/v0.25.2...HEAD).
|
38 | 44 |
|
39 | 45 | ## v0.25.2 (backend crates: v0.25.2) - (_2023-11-20_)
|
|
0 commit comments