forked from Wandalen/game_chess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (47 loc) · 1.23 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cargo-features = [
"named-profiles", # custom named profile
# "build-std", # rebuild srd
# "strip", # strip either symbols or debuginfo
# "weak-dep-features", # ability to use dep_name?/feat_name syntax
]
[workspace]
resolver = "2"
members = [
"module/*",
]
exclude = [
"module/sample_text_mesh",
]
# default-members = [ "module/game" ]
#
# debug profile
#
[profile.dev.package."*"]
opt-level = 2 # optimize dependencies only
# opt-level = "s"
# opt-level = "z"
#
# release profile
#
[profile.release]
opt-level = 3 # aggressive performance optimziation
lto = true # link-time optimization
panic = "abort" # abort immediately rather than unwind
codegen-units = 1 # improves optimization, but decrease compile time
# strip = "symbols" # strip symbols
[profile.release.package."*"]
opt-level = 3
#
# release_web profile
#
[profile.release_web]
inherits = "release"
# opt-level = "s" # optimize for small code size.
opt-level = "z" # optimize for small code size aggressively.
lto = true # link-time optimization
panic = "abort" # abort immediately rather than unwind
codegen-units = 1 # improves optimization, but decrease compile time
# strip = "symbols" # strip symbols
[profile.release_web.package."*"]
# opt-level = "s"
opt-level = "z"