- rustc-wrapper = "sccache" for faster rebuilds - jobs = 6 for parallel compilation - linker = "clang" with mold for faster linking This ensures all developers and CI use the same optimized build settings. Run: cargo build -p botserver --bin botserver
9 lines
146 B
TOML
9 lines
146 B
TOML
[build]
|
|
rustc-wrapper = "sccache"
|
|
jobs = 6
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
linker = "clang"
|
|
rustflags = [
|
|
"-C", "link-arg=-fuse-ld=mold"
|
|
]
|