-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathCargo.toml
More file actions
39 lines (34 loc) · 1.26 KB
/
Copy pathCargo.toml
File metadata and controls
39 lines (34 loc) · 1.26 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
[workspace]
members = [
"src-tauri",
"src-tauri/bmm-lib",
]
resolver = "2"
# Centralize shared deps and the local path for bmm-lib
[workspace.dependencies]
bmm-lib = { path = "src-tauri/bmm-lib", version = "0.4.1" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Keep dev `target/` small. Tauri pulls hundreds of crates, so default
# full debug info and per-crate incremental caches blow up to ~100 GB. The
# settings below cut that to ~10–15 GB while keeping useful backtraces.
[profile.dev]
# Line tables only: backtraces still resolve to source lines, but per-crate
# debug info shrinks ~50–70 %.
debug = "line-tables-only"
# Incremental builds add a `.incremental/` cache that often outweighs the
# final artifacts. Disable for noticeable space savings; rebuilds get a bit
# slower but cargo's per-crate caching still kicks in.
incremental = false
split-debuginfo = "unpacked"
# Strip debug info from third-party crates entirely. We almost never step
# into them with a debugger; backtraces still work because addresses resolve
# via the unstripped system libraries.
[profile.dev.package."*"]
debug = false
# Release profile: smaller, faster binary for ship builds.
[profile.release]
lto = "thin"
codegen-units = 1
strip = "debuginfo"
opt-level = 3