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