Files
dotfiles/.local/share/cargo/config.toml
2026-02-04 18:16:46 +02:00

36 lines
810 B
TOML

[alias]
cl = "clippy -- --no-deps -Wclippy::correctness -Wclippy::complexity -Wclippy::suspicious -Wclippy::style -Wclippy::perf -Wclippy::pedantic -Wclippy::nursery -Aclippy::cargo -Aclippy::restriction -Aclippy::must_use_candidate"
[build]
rustc-wrapper = "sccache"
rustflags = ["-Z", "threads=8"]
[profile.release]
lto = true
[profile.dev]
opt-level = 1
debug = "line-tables-only"
# codegen-backend = "cranelift"
# [unstable]
# codegen-backend = true
[profile.dev.package."*"]
opt-level = 3
debug = false
[profile.dev.build-override]
opt-level = 3
[profile.debugging]
inherits = "dev"
opt-level = 0
debug = true
lto = false
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=--ld-path=wild"]
# rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] # "target-cpu=native"