Skip to content

Commit

Permalink
[deps]: Update Rust crate uniffi to v0.26.1 (#538)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [uniffi](https://mozilla.github.io/uniffi-rs)
([source](https://togithub.com/mozilla/uniffi-rs)) | dependencies |
minor | `=0.25.2` -> `=0.26.1` |
| [uniffi](https://mozilla.github.io/uniffi-rs)
([source](https://togithub.com/mozilla/uniffi-rs)) | build-dependencies
| minor | `=0.25.2` -> `=0.26.1` |

---

### Release Notes

<details>
<summary>mozilla/uniffi-rs (uniffi)</summary>

###
[`v0.26.0`](https://togithub.com/mozilla/uniffi-rs/blob/HEAD/CHANGELOG.md#v0260-backend-crates-v0260---2024-01-23)

[Compare
Source](https://togithub.com/mozilla/uniffi-rs/compare/v0.25.3...0.26.0)

##### What's changed?

- The `rust_future_continuation_callback_set` FFI function was removed.
`rust_future_poll` now
inputs the callback pointer. External bindings authors will need to
update their code.

##### What's new?

- Rust traits `Display`, `Hash` and `Eq` exposed to Kotlin and Swift
[#&#8203;1817](https://togithub.com/mozilla/uniffi-rs/pull/1817)
- Foreign types can now implement trait interfaces
[#&#8203;1791](https://togithub.com/mozilla/uniffi-rs/pull/1791) and
[the
documentation](https://mozilla.github.io/uniffi-rs/udl/interfaces.html#foreign-implementations)
    -   UDL: use the `[WithForeign]` attribute
    -   proc-macros: use the `#[uniffi::export(with_foreign)]` attribute
- Generated Python code is able to specify a package name for the module
[#&#8203;1784](https://togithub.com/mozilla/uniffi-rs/pull/1784)
- UDL can describe async function
[#&#8203;1834](https://togithub.com/mozilla/uniffi-rs/pull/1834)
- UDL files can reference types defined in procmacros in this crate -
see
[the external types
docs](https://mozilla.github.io/uniffi-rs/udl/ext_types.html)
and also external trait interfaces
[#&#8203;1831](https://togithub.com/mozilla/uniffi-rs/issues/1831)
- Add support for docstrings via procmacros
[#&#8203;1862](https://togithub.com/mozilla/uniffi-rs/pull/1862)
and [in UDL](https://mozilla.github.io/uniffi-rs/udl/docstrings.html)
- Objects can now be returned from functions/constructors/methods
without wrapping them in an `Arc<>`.

[All changes in
v0.26.0](https://togithub.com/mozilla/uniffi-rs/compare/v0.25.2...v0.26.0).

###
[`v0.25.3`](https://togithub.com/mozilla/uniffi-rs/blob/HEAD/CHANGELOG.md#v0253-backend-crates-v0253---2023-12-07)

[Compare
Source](https://togithub.com/mozilla/uniffi-rs/compare/v0.25.2...v0.25.3)

[All changes in
v0.25.3](https://togithub.com/mozilla/uniffi-rs/compare/v0.25.2...v0.25.3).

- Switched to a patched version of `oneshot` so that consumers who use
`cargo vendor` don't vendor
    `loom` and it's sub-dependencies like `windows`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

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

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bitwarden/sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinton <[email protected]>
Co-authored-by: Daniel García <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent bc995a8 commit 933930c
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 155 deletions.
183 changes: 42 additions & 141 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,3 @@ codegen-units = 1
# Stripping the binary reduces the size by ~30%, but the stacktraces won't be usable anymore.
# This is fine as long as we don't have any unhandled panics, but let's keep it disabled for now
# strip = true

# Using git dependency temporarily to add support for immutable records in generated code
[patch.crates-io]
uniffi = { git = "https://github.com/mozilla/uniffi-rs", rev = "23711c8151bbb794369aa1f9d383db386792dff9" }
uniffi_build = { git = "https://github.com/mozilla/uniffi-rs", rev = "23711c8151bbb794369aa1f9d383db386792dff9" }
uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs", rev = "23711c8151bbb794369aa1f9d383db386792dff9" }
uniffi_core = { git = "https://github.com/mozilla/uniffi-rs", rev = "23711c8151bbb794369aa1f9d383db386792dff9" }
uniffi_macros = { git = "https://github.com/mozilla/uniffi-rs", rev = "23711c8151bbb794369aa1f9d383db386792dff9" }
Loading

0 comments on commit 933930c

Please sign in to comment.