.cargo/config.toml
# musl targets must disable static linking of the C runtime so the NIF can be
# dynamically loaded by the BEAM. See https://github.com/rust-lang/rust/issues/59302
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]
[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "target-feature=-crt-static"]