20dc0fb54e
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.
21 lines
299 B
TOML
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'
|