Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exclude fuzzing/test data from the published crates.io package #1306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
weiznich wants to merge 1 commit into rust-lang:master
base: master
Choose a base branch
Loading
from GiGainfosystems:remove_fuzzing_data

Conversation

@weiznich
Copy link

@weiznich weiznich commented Oct 14, 2025

During a dependency review I noticed that regex-automata includes binary fuzzing and test data. These files are not required for building regex-automata as dependency and make it a hard to review the code. This is similar to #1281

This commit introduces a include directive in the Cargo.toml file to explicitly include only those files required to build regex-automata. This excludes the test directory and also reduces the size of the published crate from 122 files, 2.6MiB (610.6KiB compressed) to 77 files, 2.5MiB (584.0KiB compressed) which results in a 150 GB/month traffic reduction for crates.io assuming the current 6 million/month downloads and the difference in the compressed package size.

aapoalas reacted with thumbs up emoji
During a dependency review I noticed that regex-automata includes binary
fuzzing and test data. These files are not required for building regex-automata as
dependency and make it a hard to review the code. This is similar to rust-lang#1281
This commit introduces a `include` directive in the `Cargo.toml` file to
explicitly include only those files required to build `regex-automata`. This
excludes the test directory and also reduces the size of the
published crate from 122 files, 2.6MiB (610.6KiB compressed) to
77 files, 2.5MiB (584.0KiB compressed) which results in a 150 GB/month
traffic reduction for crates.io assuming the current 6 million/month
downloads and the difference in the compressed package size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /