58 lines
1.5 KiB
TOML
58 lines
1.5 KiB
TOML
[build]
|
|
# v0 mangling scheme provides more detailed backtraces around closures
|
|
rustflags = ["-C", "symbol-mangling-version=v0", "--cfg", "tokio_unstable"]
|
|
|
|
[alias]
|
|
lint = "clippy --workspace --all-targets -- -D warnings"
|
|
check-all = "check --workspace --all-targets"
|
|
test-all = "test --workspace --no-fail-fast"
|
|
test-doc = "test --workspace --doc"
|
|
build-all = "build --workspace --all-targets"
|
|
ci-fmt = "fmt --all -- --check"
|
|
xtask = "run --package xtask --"
|
|
perf-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\"]",
|
|
]
|
|
# Keep similar flags here to share some ccache
|
|
perf-compare = [
|
|
"run",
|
|
"--profile",
|
|
"release-fast",
|
|
"-p",
|
|
"perf",
|
|
"--config",
|
|
"target.'cfg(true)'.rustflags=[\"--cfg\", \"perf_enabled\"]",
|
|
"--",
|
|
"compare",
|
|
]
|
|
|
|
[profile.ci]
|
|
inherits = "dev"
|
|
debug = "limited"
|
|
incremental = false
|
|
|
|
[target.'cfg(target_os = "windows")']
|
|
rustflags = [
|
|
"--cfg",
|
|
"windows_slim_errors", # This cfg will reduce the size of `windows::core::Error` from 16 bytes to 4 bytes
|
|
"-C",
|
|
"target-feature=+crt-static", # This fixes the linking issue when compiling livekit on Windows
|
|
]
|
|
|
|
# We need lld to link libwebrtc.a successfully on aarch64-linux
|
|
[target.aarch64-unknown-linux-gnu]
|
|
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
|
|
|
|
[env]
|
|
MACOSX_DEPLOYMENT_TARGET = "10.15.7"
|