NOflake/users/tao/cargo.toml

45 lines
1 KiB
TOML
Raw Permalink Normal View History

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"
2026-02-05 03:28:34 -08:00
# build-dir = "/home/tao/.cache/cargo/target"
build-dir = "{cargo-cache-home}/build/{workspace-path-hash}"
2025-10-28 20:39:24 -07:00
rustflags = ["-Z", "threads=8"]
rustc-wrapper = "/path/to/sccache"
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
2026-01-16 21:57:07 -08:00
codegen-backend = "llvm"
2024-03-16 18:54:05 -07:00
[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]
2025-10-28 20:39:24 -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/