automerge/Cargo.toml
Alex Good 20dc0fb54e Set optimization levels to 'Z' for release profile
This reduces the size of the WASM bundle which is generated to around
800kb. Unfortunately wasm-pack doesn't allow us to use arbitrary
profiles when building and the optimization level has to be set at the
workspace root - consequently this flag is set for all packages in the
workspace. This shouldn't be an issue really as all our dependents in
the Rust world will be setting their own optimization flags anyway.
2022-10-04 17:23:37 +01:00

21 lines
299 B
TOML

[workspace]
members = [
"automerge",
"automerge-c",
"automerge-cli",
"automerge-wasm",
"edit-trace",
]
resolver = "2"
[profile.release]
debug = true
lto = true
opt-level = 'z'
[profile.bench]
debug = true
[profile.release.package.automerge-wasm]
debug = false
opt-level = 'z'