mirror of
https://github.com/Xevion/smart-rgb.git
synced 2025-12-06 03:16:34 -06:00
48 lines
1.3 KiB
TOML
48 lines
1.3 KiB
TOML
[workspace]
|
|
members = [
|
|
"crates/borders-core",
|
|
"crates/borders-desktop",
|
|
"crates/borders-wasm",
|
|
"crates/borders-server",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
authors = ["Xevion"]
|
|
edition = "2024"
|
|
version = "0.6.1"
|
|
|
|
# Enable a small amount of optimization in the dev profile.
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
# Enable a large amount of optimization in the dev profile for dependencies.
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
# Enable more optimization in the release profile at the cost of compile time.
|
|
[profile.release]
|
|
# 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"
|
|
|
|
# Development profile for WASM builds (faster compile times)
|
|
[profile.wasm-dev]
|
|
inherits = "dev"
|
|
opt-level = 1
|
|
panic = "abort"
|
|
|
|
# Size optimization profile for WASM builds
|
|
[profile.wasm-release]
|
|
inherits = "release"
|
|
incremental = false
|
|
debug = false
|
|
opt-level = "s" # Optimize for size
|
|
lto = true # Link-time optimization
|
|
codegen-units = 1 # Single codegen unit for better optimization
|
|
panic = "abort" # Smaller panic implementation
|
|
strip = true # Remove debug symbols
|