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