In the default Cargo.toml template provide help for completing the metadata #6845
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-new
Currently
cargo new
generatesCargo.toml
with absolutely minimal set of fields.It's left up to users to discover and learn about other
Cargo.toml
fields. I think it could be improved, for example:Insert comments with hints or links, e.g.
# See more https://doc.rust-lang.org/cargo/reference/manifest.html
Insert some fields with default or empty values, e.g.
categories = [] # https://crates.io/category_slugs
. That would show users that this field exists, and prompt them to complete it. The category field in particular is often missing, and that reduces usefulness of browsing https://crates.io/categoriesThe text was updated successfully, but these errors were encountered: