website/Cargo.toml

23 lines
863 B
TOML
Raw Permalink Normal View History

2026-02-20 12:46:05 +00:00
[workspace]
2026-02-20 13:12:06 +00:00
members = ["app", "server"]
resolver = "3"
2026-02-22 14:41:34 +00:00
# Enable more optimization in the release profile at the cost of compile time.
2026-02-20 13:12:06 +00:00
[profile.release]
2026-02-22 14:41:34 +00:00
# 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 = true
# 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 = "z"
# Strip all debugging information from the binary to slightly reduce file size.
strip = "debuginfo"