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

Support precompiling NIfs #479

Open
maennchen opened this issue Aug 9, 2024 · 1 comment
Open

Support precompiling NIfs #479

maennchen opened this issue Aug 9, 2024 · 1 comment
Milestone

Comments

@maennchen
Copy link
Contributor

It would be awesome if it was possible to precompile (and possibly cross-compile for different architectures) the Nifs for published libraries. This would make the installation by the user of the library a lot and removes the requirement to install Zig.

This has already been done by other Nif providers like rustler:
https://github.com/philss/rustler_precompiled

It usually works by building the nifs and adding the object files to a GitHub release.

When a user installs the library from Hex, the library looks if the files exist locally and downloads them from the release if not.

@ityonemo
Copy link
Collaborator

yep. This is on the todo list in VERSIONS.md I will try to do it for 0.14 (thought I had an issue up for it but i don't see it anymore)

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