Replies: 1 comment 2 replies
-
Crates.io doesn't currently require any particular code repository/version control, or even any code published anywhere at all. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's long been a concern that a package on its registry and in its code repository may differ, and that may cause problems.
What if the registry takes what's in the repo and publish it? Only source code, nothing to compile. Most of the time maintainers "publish" two times anyway, once to the repository, once to the registry. If things like examples or benches are to be excluded, that could be done in Cargo.toml with something like
crates-io.publish-exclude
.The publish command can be preserved, but changed to ask the registry to pull in the code and actually publish it when run.
Beta Was this translation helpful? Give feedback.
All reactions