-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
44 lines (39 loc) · 1.24 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
[workspace]
resolver = "2"
members = ["crates/e2e", "crates/game"]
[workspace.dependencies]
bevy = { version = "0.15.0", features = [
"wayland",
"bevy_remote",
"bevy_dev_tools",
"serialize",
] }
log = { version = "*", features = [
"max_level_debug",
"release_max_level_warn",
] }
ruzstd = { version = "^0.7.3" }
flume = { version = "0.11.1" }
dotenv = "0.15.0"
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
# Enable more optimization in the release profile at the cost of compile time.
[profile.release]
opt-level = 3
# Compile the entire crate as one unit.
# Slows compile times, marginal improvements.
codegen-units = 1
# Do a second optimization pass over the entire program, including dependencies.
# Slows compile times, marginal improvements.
lto = "thin"
# Optimize for size in the wasm-release profile to reduce load times and bandwidth usage on web.
[profile.wasm-release]
# Default to release profile values.
inherits = "release"
# Optimize with size in mind (also try "z", sometimes it is better).
# Slightly slows compile times, great improvements to file size and runtime performance.
opt-level = "s"
# Strip all debugging information from the binary to slightly reduce file size.
strip = "debuginfo"