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

Migrate to uniffi v0.28.3 #65

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

packgron
Copy link
Collaborator

Migrating go binding to uniffi v0.28.3

etg added 2 commits January 15, 2025 11:07
Task: LLTDEVOPS-504

Got bindgen code to compile with uniffi v0.28.3, by disabling conflicting
areas

Signed-off-by: povilas.nagrockas <[email protected]>
@packgron packgron force-pushed the LLTDEVOPS-503_migrate_to_v0.28 branch from 95fac4a to f02cd6d Compare January 15, 2025 09:07
Task: LLTDEVOPS-505

Added back generation form cdylib.

Removed no_format field from BindingsGeneratorGo as formating option
is now part of settings passed to generator iterface.

Switched back to v0.28.0 as v0.28.3 has some interface changes to
library_mode::generate_bindings.
Logic basicaly coppied from upstream swift bridging header.
See: https://github.com/mozilla/uniffi-rs/blob/cd38ccea8236df7d93aff336c325a3a8e524af5d/uniffi_bindgen/src/bindings/swift/templates/BridgingHeaderTemplate.h

Currently enshuring that bindgen does not panic for fixture binding
generation that do not use new WithForeign traits.
Task: LLTDEVOPS-510

v0.25.0 -> v0.28.0 broke how RustBuffer stores length and capacity,
now using uint64_t instead of int32_t.

This commit fixes this in go and c bridging code.

Part of basic test fixtures are now passing.
Task: LLTDEVOPS-511

v0.25.0 -> v0.28 switched to using pointers to Arc<T> for objects.
This forces foreign language binding to use cloning semantics then
lowering this pointer to rust.
Previously func was used instead of cons that leaks from macro function.
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.

1 participant