Skip to content

Commit

Permalink
Reduce size of uploaded crate (#936)
Browse files Browse the repository at this point in the history
Currently, the compressed size of the `cargo-semver-checks` crate on
crates.io is 1.6MiB, as listed on crates.io and lib.rs. This is mostly
attributed to the brand and test directories, which are not essential
for the crate to compile. We can avoid uploading these directories by
explicitly excluding them in the manifest using `package.exclude`.
  • Loading branch information
DaniPopes authored Sep 19, 2024
1 parent 0f67fc4 commit 4d66bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ readme = "./README.md"
keywords = ["semver", "linter", "check", "crate", "cargo"]
categories = ["command-line-utilities", "development-tools::cargo-plugins"]
rust-version = "1.77"
exclude = [".github/", "brand/", "scripts/", "test_crates/", "test_outputs/", "tests/"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 4d66bed

Please sign in to comment.