Rustler Precompiled - Use precompiled NIFs from trusted sources in your Elixir code

Rustler Precompiled is a project that enables the usage of precompiled NIFs. Precompiled NIFs are then downloaded from the internet and validated using checksums.

This way we can precompile our Rustler projects in the CI and download them in the user machine securely. This can bring a huge benefit in compilation time to several projects. Since no Rust code is compiled, the only requirement is an internet connection for downloading and compiling your dependencies. And if you’d rather always build from scratch, due to security concerns, you can always bypass RustlerPrecompiled and force a local build.

Please check the announcement post and the documentation for further details.

The GitHub repository is https://github.com/philss/rustler_precompiled, and an example app is available at https://github.com/philss/rustler_precompilation_example.

You can also check the html5ever_elixir package that was published using Rustler Precompiled.

Please let me know if you have any questions about the package, and if you need help setting up and publishing an existing library with Rustler Precompiled.

17 Likes

Hi :wave:

I want to give some updates regarding Rustler Precompiled:

Also the changelog contains more information about the recent releases: Changelog — rustler_precompiled v0.5.1

That is it for now. :slight_smile:
Cheers!

5 Likes