-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
39 lines (35 loc) · 1.54 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[workspace]
resolver = "2"
# The cvars-console-* crates are not part of the workspace because:
# - They would share Cargo.lock which can cause conflicts.
# - Opening the workspace would cause RA to automatically load them, slowing it down and creating a large target dir.
# It would also require installing system-wide deps for the given engines and GUI toolkits.
# This is especially important for first-time contributors who might only want to work on one subproject.
#
# The cvars-bench-compile-time is also excluded to better simulate a standalone project using cvars
# and so we can change optimization settings in its Cargo.toml without affecting the rest.
#
# Note that .cargo/config.toml and rust-toolchain still apply to them.
members = ["cvars", "cvars-console", "cvars-macros"]
exclude = [
"cvars-console-fyrox",
"cvars-console-macroquad",
"cvars-bench-compile-time",
]
[profile.dev]
opt-level = 1 # Can be changed without recompiling all deps
[profile.dev.package."*"]
# Optimize deps but not this crate itself.
# This can significantly improve performance (e.g. 7x speedup on some projects)
# and shouldn't meaningfully increase incremental compile times because deps only change rarely.
opt-level = 3
codegen-units = 1
debug = false
# https://doc.rust-lang.org/cargo/reference/profiles.html#build-dependencies
# The reference might be wrong - it says this affects proc macros but in my experience it doesn't.
[profile.dev.build-override]
opt-level = 3
codegen-units = 1
[profile.release.build-override]
opt-level = 3
codegen-units = 1