Cargo.toml
| 1 | [workspace] |
| 2 | resolver = "2" |
| 3 | members = ["api-types", "pimdav", "server", "web"] |
| 4 | |
| 5 | [profile.dev] |
| 6 | debug = "line-tables-only" |
| 7 | |
| 8 | [profile.release] |
| 9 | strip = true |
| 10 | lto = "thin" |
| 11 | codegen-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] |
| 17 | opt-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] |
| 22 | opt-level = 1 |
| 23 |