Skip to content

Exclude benchmark data from published package #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

weiznich
Copy link

This commit excludes the benchmark data and the benchmark from the published crate. This minimizes the size of the uploaded tar ball by nearly 20% (from 54kb to 41kb). I'm not aware any useful reason to run benchmarks from the published source code, so there shouldn't be any downside in doing that.

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

The reduced size translates to a traffic decrease of 22 GB for crates.io over 90 days using the 1.7 million downloads as listed by crates.io baseline.

This was found while reviewing dependency updates via diff.rs: https://diff.weiznich.de/geographiclib-rs/0.2.4/0.2.5/test_fixtures%2FGeodTest-100.dat

I opted for the include variant to make sure only explicitly wanted files are included in the future. See the cargo documentation for more details.

This commit excludes the benchmark data and the benchmark from the
published crate. This minimizes the size of the uploaded tar ball by
nearly 20% (from 54kb to 41kb). I'm not aware any useful reason to run
benchmarks from the published source code, so there shouldn't be any
downside in doing that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant