Skip to content
New issue

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

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

Already on GitHub? # to your account

Integrate uniffi-swift-helper #451

Draft
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

crazytonyli
Copy link
Contributor

uniffi-swift-helper is a new package for developing and releasing Swift wrapper of unffi packages. It's still a WIP. I'm opening this PR to get early feedback.

I will talk about uniffi-swift-helper implementation details in its own PR when the WIP is ready for review. In this PR, I'll just talk about "side effects" that comes with uniffi-swift-helper.

Package.swift is auto-generated.

The Package.swift file is removed from git. Run make generate-swift-package-manifest to generate Package.swift at the root directory. That would be the first thing to do locally and on CI.

The make command invokes uniffi-swift-helper to set up Rust packages, swift wrappers, and their dependencies.

Building xcframework

The make commands (make xcframework, make xcframework-only-macos, etc) is still there. But it now invokes uniffi-swift-helper internally.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant