web3-proxy/docker/cargo-config.toml

49 lines
1.7 KiB
TOML
Raw Normal View History

2023-11-15 03:50:32 +03:00
[target.aarch64-unknown-linux-gnu]
2023-11-15 01:48:37 +03:00
linker = "clang"
2023-11-15 02:33:31 +03:00
rustflags = [
# faster linker
"-C", "link-arg=-fuse-ld=/usr/local/bin/mold",
2023-11-15 03:50:32 +03:00
# potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md
"-C", "target-feature=+lse",
2023-11-15 02:33:31 +03:00
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
"-C", "target-cpu=native",
# tokio unstable is needed for tokio-console
"--cfg", "tokio_unstable",
# uuid unstable is needed for zerocopy deserialize
"--cfg", "uuid_unstable",
2023-11-15 03:36:48 +03:00
# parallel build frontend
2023-11-15 03:42:21 +03:00
"-Z", "threads=8",
2023-11-15 02:33:31 +03:00
]
2023-11-15 01:48:37 +03:00
2023-11-15 03:50:32 +03:00
[target.aarch64-unknown-linux-musl]
2023-11-15 01:48:37 +03:00
linker = "clang"
2023-11-15 02:33:31 +03:00
rustflags = [
# faster linker
"-C", "link-arg=-fuse-ld=/usr/local/bin/mold",
# potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md
"-C", "target-feature=+lse",
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
"-C", "target-cpu=native",
# tokio unstable is needed for tokio-console
"--cfg", "tokio_unstable",
# uuid unstable is needed for zerocopy deserialize
"--cfg", "uuid_unstable",
2023-11-15 03:36:48 +03:00
# parallel build frontend
2023-11-15 03:42:21 +03:00
"-Z", "threads=8",
2023-11-15 02:33:31 +03:00
]
2023-11-15 03:50:32 +03:00
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = [
# faster linker
"-C", "link-arg=-fuse-ld=/usr/local/bin/mold",
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
"-C", "target-cpu=native",
# tokio unstable is needed for tokio-console
"--cfg", "tokio_unstable",
# uuid unstable is needed for zerocopy deserialize
"--cfg", "uuid_unstable",
# parallel build frontend
"-Z", "threads=8",
]