Skip to content

Commit 24901a8

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 24901a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ documentation = "https://docs.rs/ttf-parser/"
1616
readme = "README.md"
1717
edition = "2018"
1818
rust-version = "1.63.0"
19-
exclude = ["benches/**"]
19+
exclude = ["benches/", "tests/", "testing-tools/", "examples/", "meson.build"]
2020

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

0 commit comments

Comments
 (0)