build(deps): update rust crate uniffi to 0.30.0 - autoclosed#358
Closed
renovate[bot] wants to merge 1 commit intodevelopfrom
Closed
build(deps): update rust crate uniffi to 0.30.0 - autoclosed#358renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
Member
|
Why did it remove the |
58a4c55 to
dc95578
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.29.0->0.30.00.28.3->0.30.0Release Notes
mozilla/uniffi-rs (uniffi)
v0.30.0Compare Source
#[uniffi::trait_interface]attribute.This will look like
class PyTraitName(RustTraitName):What's new?
name = "NewName"attribute (like already supported for methods and constructors) (#2661)Display,Hash,Eqetc) (#2555)Ordtrait, 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)
enumandobjecttypes can be used as error type (#2658)NoPointerplaceholder object used to create fake interface instances has been renamed toNoHandleThis makes the generated source files deterministic.
uniffi_bindgen::backendhas been removed.#[uniffi(default)]changes how defaults are represented.FfiType::RustArcPtrhas been removed and the FFI type for objects/interfaces is now au64.Bindings authors will need to update their code to reflect this:
u64valuesu64handle rather than a raw pointeru64handle rather than a raw pointerEnumsandRecordscan have methods, so theMethodnow carriesself_typeinstead of the object name.In the templates, for
Callable.takes_self()is replaced withCallable.self_type().free,clone, followed by a field for each interface method.Note That
freeis now at the start of the vtable rather than the end.When Lifting/lowering trait interface handles, check if the handle was generated from Rust or the foreign side.
All changes in v0.30.0.
v0.29.5Compare Source
v0.29.4Compare Source
#[uniffi::trait_interface]attribute.This will look like
class PyTraitName(RustTraitName):What's new?
name = "NewName"attribute (like already supported for methods and constructors) (#2661)Display,Hash,Eqetc) (#2555)Ordtrait, 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)
enumandobjecttypes can be used as error type (#2658)NoPointerplaceholder object used to create fake interface instances has been renamed toNoHandleThis makes the generated source files deterministic.
uniffi_bindgen::backendhas been removed.#[uniffi(default)]changes how defaults are represented.FfiType::RustArcPtrhas been removed and the FFI type for objects/interfaces is now au64.Bindings authors will need to update their code to reflect this:
u64valuesu64handle rather than a raw pointeru64handle rather than a raw pointerEnumsandRecordscan have methods, so theMethodnow carriesself_typeinstead of the object name.In the templates, for
Callable.takes_self()is replaced withCallable.self_type().free,clone, followed by a field for each interface method.Note That
freeis now at the start of the vtable rather than the end.When Lifting/lowering trait interface handles, check if the handle was generated from Rust or the foreign side.
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.
This PR was generated by Mend Renovate. View the repository job log.