Packages

Alternative Elixir File.stat implementation using rustler NIF

Current section

Files

Jump to
file_statx native filestatx .cargo config
Raw

native/filestatx/.cargo/config

# https://github.com/philss/rustler_precompilation_example/blob/main/native/example/.cargo/config
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
# See https://github.com/rust-lang/rust/issues/59302
[target.x86_64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]
# See https://github.com/rust-lang/rust/issues/59302
[target.aarch64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]
[profile.release]
lto = true