[Pre-RFC] `cargo package` should include fewer files by default
Rust Internals [Unofficial]
April 23, 2026
Another option would be to pick some arbitrary file size cutoff and refuse to publish if any non-source files are larger than that cutoff unless a CLI flag is passed to acknowledge their inclusion as deliberate.
Discussion in the ATmosphere