Skip to content

Conversation

weiznich
Copy link

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant