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

Proposal: an option to support create a mergeable library #9

Open
Binlogo opened this issue Jun 4, 2024 · 1 comment
Open

Proposal: an option to support create a mergeable library #9

Binlogo opened this issue Jun 4, 2024 · 1 comment

Comments

@Binlogo
Copy link
Contributor

Binlogo commented Jun 4, 2024

In Xcode 15, Apple introduced the mergeable library feature to achieve app launch times similar to static linking in release builds, without sacrificing the benefits of dynamic linking in debug builds.

According to the Apple documentation: Create a pre-built mergeable library.

In Rust, since we can create an XCFramework from either a static library (.a) or a dynamic library (.dylib), we could potentially create a pre-built mergeable library for Apple platforms.

Further investigation is needed. A tracking issue on this proposal.

@akesson
Copy link
Member

akesson commented Jun 9, 2024

Looks really interesting. From what I can see, it only requires changing setting on the Xcode side when using the generated XCFramework.

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

No branches or pull requests

2 participants