Skip to content

build(deps): update rust crate uniffi to 0.30.0 - autoclosed#358

Closed
renovate[bot] wants to merge 1 commit intodevelopfrom
dep/uniffi-0.x
Closed

build(deps): update rust crate uniffi to 0.30.0 - autoclosed#358
renovate[bot] wants to merge 1 commit intodevelopfrom
dep/uniffi-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 16, 2025

This PR contains the following updates:

Package Type Update Change
uniffi (source) build-dependencies minor 0.29.0 -> 0.30.0
uniffi (source) dependencies minor 0.28.3 -> 0.30.0

Release Notes

mozilla/uniffi-rs (uniffi)

v0.30.0

Compare Source

⚠️ Breaking Changes ⚠️
  • UDL-based trait interfaces must now be wrapped with the #[uniffi::trait_interface] attribute.
  • Python: Trait interface implementations must now inherit from the trait base class.
    This will look like class PyTraitName(RustTraitName):
What's new?
  • All user-defined types can now be renamed with the proc-macro name = "NewName" attribute (like already supported for methods and constructors) (#​2661)
  • Enums and Records support exporting uniffi traits (ie, Display, Hash, Eq etc) (#​2555)
  • Support for exporting the Ord trait, allowing objects to be ordered by Rust (#​2583).
  • #[uniffi(default)] literals are now optional - eg, #[uniffi(default)] and #[uniffi(default = 0)] are equivalent.
    Similarly for args; #[uniffi::export(default(arg_name))].
    When no literal is specifed, named types (objects, records, etc) can be used as long as they have suitable default values.
    (#​2543).
    Custom types too (#​2603)
  • Custom enum and object types can be used as error type (#​2658)
  • Objects can implement external traits (#​2430)
  • Fix for external errors when error only used externally (#​2641)
  • Kotlin:
    • Switch to JNA direct mapping (#​2229)
    • Support throwing external error (#​2629)
    • The NoPointer placeholder object used to create fake interface instances has been renamed to NoHandle
  • Python:
    • Improved how default values are handled in function signatures etc and more canonical use of Python dataclasses, all towards making mypy happier (#​2552)
    • Methods now have typing annotations for return values (#​2625)
    • Fix relative imports (#​2657)
    • Fix shadowing param names with internal variables in Python (#​2628/#​2645)
    • Don't allow objects to be passed as arguments when traits are expected (#​2649)
  • Swift:
    • All object protocol conformances are public (#​2671)
    • Initialization functions now have a stable ordering when using external types.
      This makes the generated source files deterministic.
⚠️ Breaking Changes for external bindings authors ⚠️
  • uniffi_bindgen::backend has been removed.
  • #[uniffi(default)] changes how defaults are represented.
  • FfiType::RustArcPtr has been removed and the FFI type for objects/interfaces is now a u64.
    Bindings authors will need to update their code to reflect this:
    • Lowering/lifting now uses u64 values
    • The free function inputs a u64 handle rather than a raw pointer
    • The clone function inputs and returns a u64 handle rather than a raw pointer
  • Enums and Records can have methods, so the Method now carries self_type instead of the object name.
    In the templates, for Callable.takes_self() is replaced with Callable.self_type().
  • Trait / Callback interface changes
    • VTable fields are now: free, clone, followed by a field for each interface method.
      Note That free is now at the start of the vtable rather than the end.
    • Trait interface changes:
      • Foreign handles must always have the lowest bit set
      • Both Rust and foreign handles can now be passed across the FFI.
        When Lifting/lowering trait interface handles, check if the handle was generated from Rust or the foreign side.
    • See https://github.com/mozilla/uniffi-rs/pulls/2586 examples of how the builtin bindings here changed.

All changes in v0.30.0.

v0.29.5

Compare Source

v0.29.4

Compare Source

⚠️ Breaking Changes ⚠️
  • UDL-based trait interfaces must now be wrapped with the #[uniffi::trait_interface] attribute.
  • Python: Trait interface implementations must now inherit from the trait base class.
    This will look like class PyTraitName(RustTraitName):
What's new?
  • All user-defined types can now be renamed with the proc-macro name = "NewName" attribute (like already supported for methods and constructors) (#​2661)
  • Enums and Records support exporting uniffi traits (ie, Display, Hash, Eq etc) (#​2555)
  • Support for exporting the Ord trait, allowing objects to be ordered by Rust (#​2583).
  • #[uniffi(default)] literals are now optional - eg, #[uniffi(default)] and #[uniffi(default = 0)] are equivalent.
    Similarly for args; #[uniffi::export(default(arg_name))].
    When no literal is specifed, named types (objects, records, etc) can be used as long as they have suitable default values.
    (#​2543).
    Custom types too (#​2603)
  • Custom enum and object types can be used as error type (#​2658)
  • Objects can implement external traits (#​2430)
  • Fix for external errors when error only used externally (#​2641)
  • Kotlin:
    • Switch to JNA direct mapping (#​2229)
    • Support throwing external error (#​2629)
    • The NoPointer placeholder object used to create fake interface instances has been renamed to NoHandle
  • Python:
    • Improved how default values are handled in function signatures etc and more canonical use of Python dataclasses, all towards making mypy happier (#​2552)
    • Methods now have typing annotations for return values (#​2625)
    • Fix relative imports (#​2657)
    • Fix shadowing param names with internal variables in Python (#​2628/#​2645)
    • Don't allow objects to be passed as arguments when traits are expected (#​2649)
  • Swift:
    • All object protocol conformances are public (#​2671)
    • Initialization functions now have a stable ordering when using external types.
      This makes the generated source files deterministic.
⚠️ Breaking Changes for external bindings authors ⚠️
  • uniffi_bindgen::backend has been removed.
  • #[uniffi(default)] changes how defaults are represented.
  • FfiType::RustArcPtr has been removed and the FFI type for objects/interfaces is now a u64.
    Bindings authors will need to update their code to reflect this:
    • Lowering/lifting now uses u64 values
    • The free function inputs a u64 handle rather than a raw pointer
    • The clone function inputs and returns a u64 handle rather than a raw pointer
  • Enums and Records can have methods, so the Method now carries self_type instead of the object name.
    In the templates, for Callable.takes_self() is replaced with Callable.self_type().
  • Trait / Callback interface changes
    • VTable fields are now: free, clone, followed by a field for each interface method.
      Note That free is now at the start of the vtable rather than the end.
    • Trait interface changes:
      • Foreign handles must always have the lowest bit set
      • Both Rust and foreign handles can now be passed across the FFI.
        When Lifting/lowering trait interface handles, check if the handle was generated from Rust or the foreign side.
    • See https://github.com/mozilla/uniffi-rs/pulls/2586 examples of how the builtin bindings here changed.

All changes in v0.30.0.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - "before 8am every weekday" in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the macOS Relating to macOS label Oct 16, 2025
@github-actions github-actions bot added dependencies Bumping application dependencies Core Related to SnapX.Core and removed macOS Relating to macOS labels Oct 16, 2025
@ok-coder1
Copy link
Member

Why did it remove the macOS label 🤔

@renovate renovate bot changed the title build(deps): update rust crate uniffi to 0.30.0 build(deps): update rust crate uniffi to 0.30.0 - autoclosed Dec 12, 2025
@renovate renovate bot closed this Dec 12, 2025
@renovate renovate bot deleted the dep/uniffi-0.x branch December 12, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Related to SnapX.Core dependencies Bumping application dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant