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

Use UniFFI library mode #30

Closed
antoniusnaumann opened this issue Oct 2, 2023 · 0 comments
Closed

Use UniFFI library mode #30

antoniusnaumann opened this issue Oct 2, 2023 · 0 comments
Assignees
Labels
breaking A (possibly) breaking change, causing a major version bump package Related to the 'package' subcommand proc-macro Affects compatibility with UniFFI's proc macros refactor Increases code quality and maintainability udl Affects compatibility with UniFFI's udl files
Milestone

Comments

@antoniusnaumann
Copy link
Owner

As mentioned in the UniFFI docs, library mode, which was introduced in UniFFI 0.24 will become the default.

Currently, cargo swift just assumes that there is exactly one .udl file named lib.udl, resulting in an error when not present. Omitting the udl file might be desirable for crates that exclusively use proc-macros as mentioned in #26.
UniFFI library mode locates the .udl files itself, removing the need for cargo swift to take care of this.

@antoniusnaumann antoniusnaumann added package Related to the 'package' subcommand proc-macro Affects compatibility with UniFFI's proc macros udl Affects compatibility with UniFFI's udl files refactor Increases code quality and maintainability labels Oct 2, 2023
@antoniusnaumann antoniusnaumann self-assigned this Oct 2, 2023
@antoniusnaumann antoniusnaumann added this to the v0.5.0 milestone Oct 2, 2023
@antoniusnaumann antoniusnaumann added the breaking A (possibly) breaking change, causing a major version bump label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A (possibly) breaking change, causing a major version bump package Related to the 'package' subcommand proc-macro Affects compatibility with UniFFI's proc macros refactor Increases code quality and maintainability udl Affects compatibility with UniFFI's udl files
Projects
None yet
Development

No branches or pull requests

1 participant