2024-03-16 18:54:05 -07:00
|
|
|
[alias]
|
|
|
|
|
rr = "run --release"
|
2025-02-06 16:45:33 -08:00
|
|
|
rb = "run --bin"
|
|
|
|
|
d = "doc --no-deps --open"
|
2024-03-16 18:54:05 -07:00
|
|
|
|
|
|
|
|
[build]
|
|
|
|
|
target = "x86_64-unknown-linux-gnu"
|
2024-03-17 00:22:50 -07:00
|
|
|
# rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
2024-05-25 18:35:30 -07:00
|
|
|
rustc-wrapper = "/path/to/sccache"
|
2025-06-15 18:11:00 -07:00
|
|
|
rustflags = ["-Zthreads=0"]
|
2024-03-16 18:54:05 -07:00
|
|
|
|
|
|
|
|
[unstable]
|
|
|
|
|
codegen-backend = true
|
|
|
|
|
|
|
|
|
|
[provile.dev]
|
|
|
|
|
debug = 0
|
|
|
|
|
strip = "debuginfo"
|
|
|
|
|
opt-level = 1
|
|
|
|
|
lto = "off"
|
|
|
|
|
codegen-backend = "cranelift"
|
|
|
|
|
|
|
|
|
|
[profile.dev.package."*"]
|
|
|
|
|
# slow clean build for faster incrementals
|
|
|
|
|
opt-level = 3
|
|
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
incremental = true
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
lto = "fat"
|
|
|
|
|
|
|
|
|
|
# [target.x86-unknown-linux-musl]
|
|
|
|
|
# # linker = "musl-gcc"
|
|
|
|
|
# linker = "clang"
|
|
|
|
|
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
|
|
|
|
|
2024-05-25 18:35:30 -07:00
|
|
|
[target.x86_64-unknown-linux-gnu]
|
2024-03-16 18:54:05 -07:00
|
|
|
# linker = "musl-gcc"
|
2025-07-07 19:05:21 -07:00
|
|
|
# linker = "clang"
|
|
|
|
|
# rustflags = ["-Ctarget-cpu=native", "-Clink-arg=--ld-path=wild"]
|
2024-03-16 18:54:05 -07:00
|
|
|
|
|
|
|
|
# jonhoo
|
2024-04-02 11:17:11 -07:00
|
|
|
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
|
|
|
|
|
# https://www.williballenthin.com/post/rust-compilation-time/
|