add ability to use --bin
and --lib
together with cargo new
and init
#10595
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-init
Command-new
S-triage
Status: This issue is waiting on initial triage.
Problem
currently,
cargo init some_project --lib --bin
provides the following output:Proposed Solution
have a third built in package template that takes a library-first approach
Notes
It seems there is a use-case for projects that are both a library and a binary. clone and compile: its a binary. add to your cargo manifest: it's a library. It also seems there is a right and wrong way to do it.
I think it would be useful to have a package template for library-first applications
The text was updated successfully, but these errors were encountered: