-
Notifications
You must be signed in to change notification settings - Fork 135
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
Exclude unneeded files from built package #203
Conversation
Seems like the files are included, look like a bug/edge case in the reporting of I will push soon something to avoid test folder in each sub-folder or at least in src it seems to work. (Need some test to be sure) |
Just made a commit with explicit exclusion if it's okay, I can rebase it, if it not I can change the Pull-request. Edit: Random-idea a possibility with exclusion is to just exclude big samples test file, it may need to change some test to need an option if test are desired in the final package. Quick analysis of the size of the packageI checked the package size by doing:
Results:
Something like 34979 bytes saved! Sorry for my English I am a not an English native writer and also thanks for your patience! :) |
There was a effectively a bug in |
Any chance you'd be able to rebase this branch with master? I think that should fix the lint failures, and then this should be review for the rest of the team to review! |
By default cargo publish all the content versionned by git. following insight given by cargo diet I used an explicit approach to exclude test dataset etc. from the final package.
Hi, sure thanks for the follow-up! I rebased it onto master, but I didn't squashed the two commit to keep information while reviewing of the first approach but if the exclusion one is selected, I will rebase my commits to keep just one. |
Sounds good! I agree there's no reason to modify the commits you made until we're ready to merge. I just authorized the CI run; once it passes, I'll mark this as ready for review and add the others! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and thanks for your contribution!
I think something like this would definitely be useful in the driver too, so I filed RUST-526 to track the work for that.
Just merged; thanks for the PR! |
Thanks for time and review! :) |
By default cargo publish all the content versionned by git.
following insight given by cargo diet I used an explicit approach
to exclude test dataset etc. from the final package.
May clause #202