veloren/Cargo.toml

56 lines
1.4 KiB
TOML
Raw Normal View History

2019-11-20 15:30:33 +00:00
cargo-features = ["named-profiles","profile-overrides"]
2019-01-02 17:23:31 +00:00
[workspace]
members = [
"common",
"client",
"chat-cli",
2019-01-02 17:23:31 +00:00
"server",
"server-cli",
"voxygen",
2019-01-15 15:13:11 +00:00
"world",
2019-01-02 17:23:31 +00:00
]
2019-11-20 15:30:33 +00:00
# default profile for devs, fast to compile, okay enough to run, no debug information
2019-01-02 17:23:31 +00:00
[profile.dev]
opt-level = 2
overflow-checks = true
2019-11-20 15:30:33 +00:00
debug-assertions = true
panic = "abort"
2019-11-20 15:30:33 +00:00
debug = false
codegen-units = 8
lto = false
incremental = true
# All dependencies (but not this crate itself)
[profile.dev.overrides."*"]
opt-level = 3
[profile.dev.overrides."veloren-common"]
opt-level = 2
[profile.dev.overrides."veloren-client"]
opt-level = 2
[profile.dev.overrides."veloren-chat-cli"]
opt-level = 2
[profile.dev.overrides."veloren-server"]
opt-level = 2
[profile.dev.overrides."veloren-server-cli"]
opt-level = 2
[profile.dev.overrides."veloren-voxygen"]
opt-level = 2
[profile.dev.overrides."veloren-world"]
opt-level = 2
2019-01-02 17:23:31 +00:00
2019-11-20 15:30:33 +00:00
# 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 profil 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`
2019-01-02 17:23:31 +00:00
[profile.release]
2019-11-20 15:30:33 +00:00
opt-level = 3
overflow-checks = false
2019-11-20 15:30:33 +00:00
debug-assertions = false
lto = true
2019-11-20 15:30:33 +00:00
debug = false