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[target.'cfg(target_os = "windows")']
17rustflags = [
18 "--cfg",
19 "windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
20 "-C",
21 "target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
22 "-C",
23 "link-arg=-fuse-ld=lld",
24]
25
26[env]
27MACOSX_DEPLOYMENT_TARGET = "10.15.7"