-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
23 lines (22 loc) · 934 Bytes
/
Copy pathCargo.toml
File metadata and controls
23 lines (22 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Workspace root. `default-members` is just `usage-core` so a bare `cargo build`
# / `cargo test` from the root stays CMake-free (it skips the gpui widget); build
# the GUI explicitly with `-p claude-usage-widget`. The gpui git deps are pinned
# by the single root `Cargo.lock` — build the widget with `--locked`.
[workspace]
resolver = "3"
members = [
"crates/usage-core",
"crates/usage-widget",
"tools/icongen",
"tools/glass-capture",
]
default-members = ["crates/usage-core"]
[profile.release]
opt-level = "z" # optimize aggressively for size
# thin (not "fat") LTO: fat LTO + panic="abort" intermittently fails a CLEAN build
# of proc-macro deps with "only metadata stub found for rlib dependency core".
# thin is robust and only marginally larger.
lto = "thin"
strip = true # drop symbols
codegen-units = 1 # better cross-module size optimization
panic = "abort" # no unwind tables — smaller binary