Skip to content

cargo new --bin[=NAME] should be allowed #5573

Closed as not planned
Closed as not planned
@SoniEx2

Description

@SoniEx2

e.g. (assuming #5431 )

cargo new --lib --bin --bin=hello crate

crate/
|_ Cargo.toml
\_ src/
   |_ lib.rs
   |_ main.rs
   \_ bin/
      \_ hello.rs

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