Description
Problem
Having the repository
field in Cargo.toml of an open source Rust project will make it easier to contribute to the project.
According to my analysis on Rust-Digger, 19.03% of the crates don't have the repository
field.
Some of those ~ 2.23% use the homepage
field to link to the repository. It is better than nothing, but ideally people would use the repository field. See stats: https://rust-digger.code-maven.com/stats
Proposed Solution
Adding
# repository = ""
to the generated Cargo.toml
file will probably encourage more people to enable it and use it to link to the repository.
In addition including a commented out link to the documentation of the manifest would also help https://doc.rust-lang.org/cargo/reference/manifest.html
Finally, cargo publish
might give a warning if the repository field is missing or if it is empty
Notes
No response