grass/Cargo.toml
saolof ef7d188062
Add profile to generate a small final binary (#68)
adds `profile.small`, which optimizes for binary size instead of runtime performance
2023-01-17 01:07:20 -05:00

21 lines
466 B
TOML

[workspace]
members = [
"crates/compiler",
"crates/include_sass",
"crates/lib",
]
[profile.release]
debug = true
panic = "abort"
lto = true
codegen-units = 1
[profile.small]
inherits = 'release'
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*