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",
|
2019-03-03 22:02:38 +00:00
|
|
|
"chat-cli",
|
2019-01-02 17:23:31 +00:00
|
|
|
"server",
|
2019-01-30 12:11:34 +00:00
|
|
|
"server-cli",
|
2019-01-02 21:25:01 +00:00
|
|
|
"voxygen",
|
2019-01-15 15:13:11 +00:00
|
|
|
"world",
|
2020-05-27 15:58:57 +00:00
|
|
|
"network",
|
2020-06-17 07:49:14 +00:00
|
|
|
"voxygen/src/anim"
|
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]
|
2019-05-12 17:43:55 +00:00
|
|
|
opt-level = 2
|
2020-03-29 19:48:51 +00:00
|
|
|
overflow-checks = true
|
2019-11-20 15:30:33 +00:00
|
|
|
debug-assertions = true
|
2019-10-16 11:39:41 +00:00
|
|
|
panic = "abort"
|
2020-04-17 23:29:01 +00:00
|
|
|
debug = false
|
2019-11-20 15:30:33 +00:00
|
|
|
codegen-units = 8
|
|
|
|
lto = false
|
|
|
|
incremental = true
|
|
|
|
# All dependencies (but not this crate itself)
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."*"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 3
|
2020-03-10 00:07:36 +00:00
|
|
|
[profile.dev.package."veloren_network"]
|
2019-12-20 13:56:01 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-common"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-client"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-chat-cli"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-server"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-server-cli"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-voxygen"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 12:38:58 +00:00
|
|
|
[profile.dev.package."veloren-world"]
|
2019-11-20 15:30:33 +00:00
|
|
|
opt-level = 2
|
2020-01-20 16:16:41 +00:00
|
|
|
|
|
|
|
[profile.no_overflow.package."veloren-world"]
|
2020-01-11 21:05:22 +00:00
|
|
|
opt-level = 3
|
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
|
|
|
|
|
2020-01-11 21:05:22 +00:00
|
|
|
# used to perform things that do a *lot* of math (i.e. worldgen) but still need reasonable compilation time. Ideally this would also
|
|
|
|
# add -C target-cpu=native, but I don't think you can set this by profile currently.
|
|
|
|
[profile.no_overflow]
|
|
|
|
inherits= 'dev'
|
|
|
|
overflow-checks = false
|
|
|
|
debug-assertions = false
|
|
|
|
|
2019-12-31 21:37:55 +00:00
|
|
|
# this profile is used for veloren releases, compile time doesn't matter
|
2019-11-20 15:30:33 +00:00
|
|
|
# we need stacktraces, light debug information, as much checks as possible
|
2019-11-28 13:32:38 +00:00
|
|
|
# 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
|
2019-11-28 13:32:38 +00:00
|
|
|
overflow-checks = false
|
2019-11-20 15:30:33 +00:00
|
|
|
debug-assertions = false
|
2019-05-12 17:43:55 +00:00
|
|
|
lto = true
|
2019-11-20 15:30:33 +00:00
|
|
|
debug = false
|
2020-01-18 21:58:15 +00:00
|
|
|
|
|
|
|
# this profile is used by developers for release profiling
|
|
|
|
[profile.releasedebuginfo]
|
|
|
|
inherits = 'release'
|
|
|
|
debug = 1
|