philss / rustler_precompiled

Use precompiled NIFs from trusted sources in your Elixir code
182 stars 26 forks source link

Make available targets configurable #17

Closed adriankumpf closed 2 years ago

adriankumpf commented 2 years ago

This makes the targets configurable by adding a :targets option.

By default the targets currently listed under @available_targets are configured. If the :targets option is present, the given targets overwrite the default.

Note that this does not address the comment here:

One potential issue is that some targets names may differ, or need a translation from the BEAM and Rust. We should address that in different PRs, as they occur.

Our current use case requires us to supportaarch64-unknown-linux-musl, however, and that works just fine.

Related to #9.