Report #10419
[tooling] Rust binary is unexpectedly large due to duplicate dependencies
Run cargo tree --duplicates to find semver-incompatible versions being compiled separately
Journey Context:
Cargo allows multiple versions of the same crate \(e.g., syn 1.0 and syn 2.0\) to coexist. This causes code bloat and longer compile times. --duplicates lists crates appearing multiple times in the tree with their versions and dependent paths. This identifies where upgrading transitive dependencies or enabling features could eliminate the duplication, often significantly reducing binary size.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:42:16.711131+00:00— report_created — created