mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
898b5c6593
This was necessary because Cargo recently deprecated the "overrides" keyword in favor of "package", and Criterion changed its interface. This commit also now lists more configurable keys, so if they aren't set to their defaults the user will be able to find them. This includes the roll key, which wasn't listed earlier and is different on Windows and Mac. It does *not* include the respawn key because that key is already shown when you die.
61 lines
1.5 KiB
TOML
61 lines
1.5 KiB
TOML
cargo-features = ["named-profiles","profile-overrides"]
|
|
|
|
[workspace]
|
|
members = [
|
|
"common",
|
|
"client",
|
|
"chat-cli",
|
|
"server",
|
|
"server-cli",
|
|
"voxygen",
|
|
"world",
|
|
]
|
|
|
|
# default profile for devs, fast to compile, okay enough to run, no debug information
|
|
[profile.dev]
|
|
opt-level = 2
|
|
overflow-checks = true
|
|
debug-assertions = true
|
|
panic = "abort"
|
|
debug = false
|
|
codegen-units = 8
|
|
lto = false
|
|
incremental = true
|
|
# All dependencies (but not this crate itself)
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
[profile.dev.package."veloren-common"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-client"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-chat-cli"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-server"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-server-cli"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-voxygen"]
|
|
opt-level = 2
|
|
[profile.dev.package."veloren-world"]
|
|
opt-level = 2
|
|
|
|
# this profile is used by developers if dev doesn't has enough debug information, the name must != debug, as debug is used by dev because....
|
|
[profile.debuginfo]
|
|
inherits= 'dev'
|
|
debug = true
|
|
|
|
# this profile is used for veloren releases, compile time doesn't matter
|
|
# we need stacktraces, light debug information, as much checks as possible
|
|
# I would like to put it in a seperate `official_release` target, but that doesnt share caches with `cargo test` and `cargo bench`
|
|
[profile.release]
|
|
opt-level = 3
|
|
overflow-checks = false
|
|
debug-assertions = false
|
|
lto = true
|
|
debug = false
|
|
|
|
# this profile is used by developers for release profiling
|
|
[profile.releasedebuginfo]
|
|
inherits = 'release'
|
|
debug = 1
|