Commit 1ddcf84
fix: shrink release binary to stay under 1 MiB limit
- Move serde_json to [dev-dependencies]: it is only used in a #[cfg(test)]
block in graph/types.rs, so it must not be linked into the release binary
- Add lto = true: whole-program dead-code elimination across crate boundaries
- Add codegen-units = 1: single codegen unit enables better optimization
- Add strip = "symbols": removes symbol table from the release binary
Together these bring the binary well under the 1 MiB project goal.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6ea71d1 commit 1ddcf84
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments