[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-rdynamic"]

[target.aarch64-unknown-linux-gnu]
rustflags = ["-C", "link-args=-rdynamic"]


[target.'cfg(target_env = "musl")']
# Turn off self-contained linking mode. This makes rustc rely on the installed musl toolchain to
# find and link against C and C++ runtime objects, instead of linking against the bundled C ones.
rustflags = "-Clink-self-contained=no"

# for these musl targets libstdc++ will be linked statically (that's configured in e.g. leveldb-sys)
# we provide the location of that library here
[target.x86_64-unknown-linux-musl]
rustflags = "-Lnative=/usr/local/x86_64-linux-musl/lib"

[target.i686-unknown-linux-musl]
rustflags = "-Lnative=/usr/local/i686-linux-musl/lib"

[target.aarch64-unknown-linux-musl]
rustflags = "-Lnative=/usr/local/aarch64-linux-musl/lib"


[source.crates-io]
replace-with = "vendored-sources"

[source."https://github.com/bytecodealliance/lucet.git"]
git = "https://github.com/bytecodealliance/lucet.git"
rev = "b1863dacc8c92c11e5434fc8815d9b9a26cfe3db"
replace-with = "vendored-sources"

[source."https://github.com/lukesteensen/evmap.git"]
git = "https://github.com/lukesteensen/evmap.git"
rev = "45ba973c22715a68c5e99efad4b072421f7ad40b"
replace-with = "vendored-sources"

[source."https://github.com/timberio/leveldb-sys.git"]
git = "https://github.com/timberio/leveldb-sys.git"
branch = "leveldb_mmap_limit"
replace-with = "vendored-sources"

[source."https://github.com/tokio-rs/tracing"]
git = "https://github.com/tokio-rs/tracing"
rev = "f470db1b0354b368f62f9ee4d763595d16373231"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

