Skip to content

Commit 23ba294

Browse files
committed
Exclude test data and tools from published packages
During our dependency reviews we discovered that the ttf-parser crate as uploaded to crates.io includes test data and additional tools that are not used by the rust code. This increases the package size and makes it harder to review the source code. This commit explicitly includes only relevant files. This helps to reduce the package size Before: 118 files, 1.0MiB (198.4KiB compressed) After: 75 files, 747.1KiB (140.6KiB compressed) Overall based on the reduction in the compressed package size and the current download numbers that results to a traffic reduction for crates.io of around 110GB / Month.
1 parent a6813b4 commit 23ba294

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ documentation = "https://docs.rs/ttf-parser/"
1616
readme = "README.md"
1717
edition = "2018"
1818
rust-version = "1.63.0"
19-
exclude = ["benches/**"]
19+
include = [
20+
"README.md",
21+
"Cargo.toml",
22+
"src/**/*.rs",
23+
"LICENSE-APACHE",
24+
"LICENSE-MIT",
25+
]
2026

2127
[dependencies]
2228
core_maths = { version = "0.1.0", optional = true } # only for no_std builds

0 commit comments

Comments
 (0)