Skip to content

Commit 1fcdd6c

Browse files
committed
Exclude fuzzing/test data from the published crates.io package
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.
1 parent 5ea3eb1 commit 1fcdd6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

regex-automata/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ categories = ["text-processing"]
1313
edition = "2021"
1414
autoexamples = false
1515
rust-version = "1.65"
16+
include = ["src/**/*.rs", "Cargo.toml", "/README.md", "LICENSE-APACHE", "LICENSE-MIT"]
1617

1718
[lib]
1819
bench = false

0 commit comments

Comments
 (0)