Skip to content
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

Reduce size of the crates by excluding unnecessary files #1158

Closed
wants to merge 1 commit into from

Conversation

pentamassiv
Copy link
Contributor

The size of the crates can be reduced by excluding the tests folder and the Gir.toml, docs.md and versions.txt files from being published to crates.io.

The size could be reduced even more by excluding the LICENSE and COPYRIGHT files but I did not do that.

The sys folders do not need to be excluded. Apparently cargo is smart enough to recognize that they are independent crates. The gir-files folder also does not need to be excluded, because it is one level higher than the crates so cargo does not try to include it anyways.

You can see which files will be included without publishing the crates by running cargo package --list.

@pentamassiv pentamassiv closed this Aug 7, 2023
@pentamassiv pentamassiv deleted the reduce_size branch August 7, 2023 17:03
@bilelmoussaoui bilelmoussaoui added backported PR was backported to the current stable branch and removed needs-backport PR needs backporting to the current stable branch backported PR was backported to the current stable branch labels Oct 10, 2023
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.

3 participants