Skip to content

Commit 3640205

Browse files
committed
Exclude bad test keys from the published package
During a dependency review I noticed that tokio-rustls includes bad test keys in the binary pem format in the published packages. These files are not required for building tokio-rustls and make it harder to review the code. This commit explicitly excludes these files from the published package. Before this change `cargo package` reported a size of 22 files, 137.1KiB (34.6KiB compressed). After this change it reports a size of 14 files, 110.6KiB (27.3KiB compressed). Nevertheless given the current number of 17 million downloads per month that would result in a 118 GB/month traffic reduction for crates.io. For me personally the exclusion of the binary files is the more important outcome.
1 parent aca7650 commit 3640205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Asynchronous TLS/SSL streams for Tokio using Rustls."
1010
categories = ["asynchronous", "cryptography", "network-programming"]
1111
edition = "2021"
1212
rust-version = "1.71"
13-
exclude = ["/.github", "/examples", "/scripts"]
13+
exclude = ["/.github", "/examples", "/scripts", "/tests/"]
1414

1515
[dependencies]
1616
rustls = { version = "0.23.27", default-features = false, features = ["std"] }

0 commit comments

Comments
 (0)