Cargo.toml
⎇
Raw
1[workspace]
2resolver = "2"
3members = ["api-types", "server", "web"]
4
5[profile.release]
6strip = true
7lto = "thin"
8codegen-units = 1
9# No `panic = "abort"`: the server has no CatchPanic layer, a handler panic
10# would take the whole process down.
11
12# The wasm bundle: size over speed.
13[profile.release.package.web]
14opt-level = "z"
15
16# The bundled SQLite amalgamation at -O2 is 63s of the 77s release build.
17# -O1 makes it 42s. Our tables are tiny, so the runtime cost is nil.
18[profile.release.package.libsqlite3-sys]
19opt-level = 1
20