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 --"
 7perf-test = ["test", "--profile", "release-fast", "--lib", "--bins", "--tests", "--all-features", "--config", "target.'cfg(true)'.runner='cargo run -p perf --release'", "--config", "target.'cfg(true)'.rustflags=[\"--cfg\", \"perf_enabled\"]"]
 8# Keep similar flags here to share some ccache
 9perf-compare = ["run", "--profile", "release-fast", "-p", "perf", "--config", "target.'cfg(true)'.rustflags=[\"--cfg\", \"perf_enabled\"]", "--", "compare"]
10
11[target.'cfg(target_os = "windows")']
12rustflags = [
13    "--cfg",
14    "windows_slim_errors",        # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
15    "-C",
16    "target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
17]
18
19[env]
20MACOSX_DEPLOYMENT_TARGET = "10.15.7"