config.toml

 1[build]
 2# v0 mangling scheme provides more detailed backtraces around closures
 3rustflags = ["-C", "symbol-mangling-version=v0", "--cfg", "tokio_unstable"]
 4
 5[alias]
 6xtask = "run --package xtask --"
 7
 8[target.x86_64-unknown-linux-gnu]
 9linker = "clang"
10rustflags = ["-C", "link-arg=-fuse-ld=mold"]
11
12[target.aarch64-unknown-linux-gnu]
13linker = "clang"
14rustflags = ["-C", "link-arg=-fuse-ld=mold"]
15
16# This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
17[target.'cfg(target_os = "windows")']
18rustflags = ["--cfg", "windows_slim_errors"]