Skip to content

cargo new and cargo init should optionally populate package.description in Cargo.toml... #12736

@busticated

Description

@busticated

Problem

hey there 👋

i noticed that crates.io requires a package have a description (docs) but the cargo new and cargo init commands currently do not let you set that field.

Proposed Solution

allow users to set a package's description field via option flag - something like:

cargo new path/to/my-crate --name my-crate --description 'a new crate, yay!'

Notes

No response

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-initCommand-newS-propose-closeStatus: A team member has nominated this for closing, pending further input from the teamS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions