Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (52 loc) · 2.12 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (52 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[workspace]
resolver = "2"
members = [
"server",
"desktop",
"cli",
"lib",
"wasm",
"plugin-examples/random-folder-extender",
"plugin-examples/test-plugin",
"atomic-plugin",
# Built for wasm32-wasip2, not the host triple. Kept in the workspace so it
# shares the lockfile; the server loads the artifact rather than linking it.
"plugin-runtime",
"tools/cargo-bin",
]
exclude = ["flutter/rust"]
# Debuginfo dominates target/ size: with ~1460 deps (tauri, actix, iroh) the
# default `debug = true` produces a multi-GB tree per build flavor, and this
# workspace builds several (debug, rust-analyzer, wasm-pack). Keep line tables
# for our own backtraces, skip debuginfo for dependencies entirely.
[profile.dev]
debug = "line-tables-only"
# The e2e server. Debug is ~7x slower per commit round-trip (36ms vs 5ms
# measured), and the suite runs four of these servers against a shared box
# alongside eight browsers — so the debug binary spends CPU the browsers need,
# and slow commits show up as timing failures rather than as slowness.
#
# Full `--release` was tried and reverted for costing 15-30 minutes of cold
# compile before Playwright could start. Nearly all of that is LTO and the
# single codegen unit, which buy runtime performance a test server does not
# need. This keeps the parts that matter (optimisation)
# and drops the parts that only cost compile time.
[profile.e2e]
inherits = "release"
opt-level = 2
lto = false
codegen-units = 16
debug = false
# Keep the debug build's BEHAVIOUR and change only its speed. Inheriting from
# release would switch `debug_assertions` off, which silently drops every
# `#[cfg(debug_assertions)]` item — `appstate.rs` gates the prune-tests
# endpoint on exactly that — and disables arithmetic overflow checks. Neither
# has anything to do with why this profile exists.
debug-assertions = true
overflow-checks = true
[profile.dev.package."*"]
debug = false
[workspace.metadata.bin]
# Explicit defaults select cargo install in cargo-run-bin. Older global
# cargo-binstall versions do not support its --root argument.
wasm-pack = { version = "0.15.0", default-features = true, locked = true }