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

Update Rust crate uniffi to v0.25.0 #303

Merged
merged 5 commits into from
Nov 1, 2023
Merged

Update Rust crate uniffi to v0.25.0 #303

merged 5 commits into from
Nov 1, 2023

Conversation

dani-garcia
Copy link
Member

Type of change

- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Updated Uniffi to 0.25.0. This required some code changes:

  • BitwardenError now needs to implement Error.
  • Defining the uniffi_support types in both crates seems to be causing duplicate symbols on xcode at least, so we instead use ffi_converter_forward! to forward the type definitions from the bitwarden crate to the bitwarden-uniffi crate.
  • There is a name collision with our Send, and Rust's Send, so I've changed the imports to use vault::Send.
  • Removed the unused UDL file.

Remove uniffi patch section
Implement Error for BitwardenError
Fix ambiguous Send
Forward uniffi definition to bitwarden crate
Remove unused UDL
@dani-garcia dani-garcia requested a review from Hinton October 23, 2023 11:45
@bitwarden-bot
Copy link

bitwarden-bot commented Oct 23, 2023

Logo
Checkmarx One – Scan Summary & Details1f08ae82-a40a-48ce-9fac-2d2778b93a1b

No New Or Fixed Issues Found

Hinton
Hinton previously approved these changes Oct 23, 2023
@dani-garcia dani-garcia merged commit 4819efd into master Nov 1, 2023
45 checks passed
@dani-garcia dani-garcia deleted the ps/update-uniffi branch November 1, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants