-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Warning when large binary files are included into the bundle #9058
Copy link
Copy link
Open
Labels
A-new-lintArea: new lintArea: new lintC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Metadata
Metadata
Assignees
Labels
A-new-lintArea: new lintArea: new lintC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the problem you are trying to solve
It seems like some crate authors do not ask cargo to exclude pictures/pdfs/other-blobs by providing an appropriate
exclude = [ .. ]directive at theirCargo.tomls.And it also seems like most of the time it is not intentional, it's more like developers might simply forget that anything that is not ignored by default gets packages into the published
.cratefile.I'm not quite sure how common the situation is, though it might be happening quite often, since a deliberate action is required to exclude blobs from the package, and I wasn't able to find any advices to exclude "extra" files in the official guides.
Describe the solution you'd like
I suppose a warning when including binary large objects should do the trick, something like
Notes
It would be great if somebody's got an idea how to actually check the assumption that developers are unintentionally including extra blobs to their packages on crates.io. Currently I can only think of an article in the TWIR which explains the possible issue, but I'm looking for better ideas :)