-
Notifications
You must be signed in to change notification settings - Fork 85
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
Test snapshots contained in crates.io release #190
Comments
Thanks for the report! While it may seem unusual to see test assets get published, this allows tooling to pull down the crate from crates.io and runs tests on it. See this discussion for more details. The idea that published crates should be able to pass tests might be one of the reasons that If the test assets get exceptionally large and start to have a negative impact on pulling down the crate they should definitely be excluded. But right now their size is pretty negligible. |
Thanks for the response. I agree with you that the test files are relatively small and additionally they are human readable, so they are not likely to be a large problem at all. Anyway I just want to mention that the linked discussion is only one opinion on this topic, there are other members in the community that promote the opinion that test files should always be excluded. I personally tend to exclude such files as they make it harder to review the relevant parts of the code (there is just "more" to review) if you check your dependencies. That's especially a problem for binary files, so this only partially affects this particular case. Anyway, feel free to close this issue if you feel that's not relevant, I got my answer. |
I see this issue better now, thanks for explaining. I do think that it could be confusing to have Also, the |
The colored 2.2.0 release contains insta snapshots as part of the crates.io release. Given that these snapshots are almost exclusively used for running tests it seems to be unnecessary to include them into the released package as they just increase the package size. Cargo allows you to declare which files to include/exclude in your Cargo.toml files.
See here for the contained files.
The text was updated successfully, but these errors were encountered: