Skip to content

Drop unused dependencies and most test data from published crates #34

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

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

decathorpe
Copy link
Contributor

I'm working on packaging this crate for Fedora Linux as a new dependency of GNOME Snapshot.

During review we found that there is a lot of both large and potentially (though not necessarily!) problematic test images included in published crates.

Hopefully these changes make sense:

  • moved benchmark input files from src/ to benches/
  • excluded /benches and /tests directories from published crates
  • dropped "criterion" dependency since it is currently unused
  • PNG images in src/test_data are kept so we can still run the unit tests

This reduces the download size for the rqrr crate from crates.io from almost 3 MB to about 40 kB (1-2% of the current size).

The "criterion" dependency is currently unused since all code in benches/* is commented out, so this comments out the criterion dependency too since it just adds compilation time for dozens of crates that are unused.

This reduces the download size for the rqrr crate from crates.io
from almost 3 MB to about 40 kB (1-2% of the current size).

The "criterion" dependency is currently unused since all code in
benches/* is commented out, so this comments out the criterion
dependency too since it just adds compilation time for dozens of
crates that are unused.
@WanzenBug WanzenBug merged commit d21634a into WanzenBug:master Mar 22, 2025
3 of 12 checks passed
@WanzenBug
Copy link
Owner

Thank you!

@decathorpe
Copy link
Contributor Author

Thank you for the short RTT :)

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.

2 participants