Skip to content

In the default Cargo.toml template provide help for completing the metadata #6845

Closed
@kornelski

Description

@kornelski

Currently cargo new generates Cargo.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/categories

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions