Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update uniffi_bindgen requirement from 0.23 to 0.24 #128

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2023

Updates the requirements on uniffi_bindgen to permit the latest version.

Changelog

Sourced from uniffi_bindgen's changelog.

v0.24.1 (backend crates: v0.24.1) - (2023-06-23)

All changes in v0.24.1.

What's changed

  • Python: remove unused import (and unbreak Python 3.6 compatibility) (#1618)
  • Python: Delay contract checks until after all functions are defined to avoid wrong ABI use (#1619)
  • Kotlin: Fix error handling in async functions (#1614)

v0.24.0 (backend crates: v0.24.0) - (2023-06-21)

All changes in v0.24.0.

⚠️ Breaking Changes ⚠️

  • ABI: Implemented a new callback-interface ABI that significantly improves performance on Python and Kotlin.
    • UniFFI users will automatically get the benefits of this without any code changes.
    • External bindings authors will need to update their bindings code. Please see Guidance for external bindings below for details.
  • ABI: Changed API checksum handling. This affects external bindings authors who will need to update their code to work with the new system. See [PR #1469](mozilla/uniffi-rs#1469) for details.
  • Removed the long deprecated ThreadSafe attribute.
  • External types now require a valid crate name. Before the docs said it must be a crate name, but any string could be used as long as it was consistent with the external type map in uniffi.toml.
  • External types must be available in the Rust crate root.
  • External bindings: The ExternalBindingsConfig trait was replaced with BindingsConfig. External bindings implementations will need to make minor changes to implement the new trait instead.
  • Removed support for the --config flag when running the scaffolding command. This flag has never an effect, because there was no scaffolding configuration options.
  • Python bindings are now more strict with their types. You can no longer pass strings to methods taking integers or floats, or floats to methods taking integers.

What's changed

  • Added "library mode" bindings generation using generate --library [path-to-cdylib]. This mode simplifies bindings generation, especially when you have dependencies between multiple UniFFIed crates. See the tutorial for a description.
  • The include_scaffolding!() macro must now either be called from your crate root or you must have use the_mod_that_calls_include_scaffolding::* in your crate root. This was always the expectation, but wasn't required before. This will now start failing with errors that say crate::UniFfiTag does not exist.
  • proc-macros now work with many more types including type aliases, type paths, etc.
  • The uniffi_types module is no longer needed when using proc-macros.
  • Traits can be exposed as a UniFFI interface by using a [Trait] attribute in the UDL. See the documentation.
  • The bytes primitive type was added, it represents an array of bytes. It maps to ByteArray in Kotlin, bytes in Python, String with Encoding::BINARY in Ruby and Data in Swift. (#1543)
  • Shortened str() representations of errors in Python to align with other exceptions in Python. Use repr() or the {!r} format to get the old representation back (#1556)
  • Methods implemented by standard Rust traits, such as Debug, Display, Eq and Hash can now be exposed over the FFI and bindings may implement special methods for them. See the documentation.
  • Added support for async/futures (#1409, #1515)
  • Added constructor support to proc-macro frontend (#1518)
  • Added support for field defaults to proc-macro frontend (#1560)
  • Implemented proc-macro callback interface support (#1573)
  • Python bindings now generate type stubs for all functions and types (#1506)
  • Enforced checks for integer overflows in Python bindings (#1546)
  • No more implicit conversion to integers/floats in Python (#1554)
  • Enforced checks for integer overflows in Ruby bindings (#1572)
  • Only UTF-8 valid strings are passed from Ruby to Rust (#1595)
  • No more implicit conversion to integers/floats in Ruby (#1596)

... (truncated)

Commits
  • c0e64b8 chore: Release
  • 217d4cc chore: Release
  • c5afe07 Add all changes for next patch release
  • 6ac168b Add a version to the example/fixture dependencies on uniffi
  • 6938c26 Delay contract checks until after all functions are defined
  • 68107e3 Fix Kotlin error handling in async functions (#1614)
  • 01e700f Python: Remove unused import
  • 2978216 Correct the process description: releasing backend crates will not automatica...
  • 83bf7ea Release process: Remove step to touch uniffi/CHANGELOG.md
  • 9e9bc43 Merge pull request #1617 from mozilla/release-v0.24.x
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [uniffi_bindgen](https://github.com/mozilla/uniffi-rs) to permit the latest version.
- [Changelog](https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md)
- [Commits](mozilla/uniffi-rs@v0.23.0...v0.24.1)

---
updated-dependencies:
- dependency-name: uniffi_bindgen
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 1, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 5, 2023

Looks like uniffi_bindgen is no longer updatable, so this is no longer needed.

@dependabot dependabot bot closed this Jul 5, 2023
@dependabot dependabot bot deleted the dependabot/cargo/uniffi_bindgen-0.24 branch July 5, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants