Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow creating new projects from pre-defined templates #9775

Closed
ranile opened this issue Aug 8, 2021 · 1 comment
Closed

Allow creating new projects from pre-defined templates #9775

ranile opened this issue Aug 8, 2021 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@ranile
Copy link

ranile commented Aug 8, 2021

Describe the problem you are trying to solve

Getting started with Rust frameworks is a cumbersome task. Especially the frameworks which require boilerplate to be used. WASM web frameworks is one example of such frameworks. The user is forced to choose between two options:

  1. Create the boilerplate manually - either copy/paste it from documentation or write it out by hand
  2. Use a tool like cargo-generate

Describe the solution you'd like

  • A new command such as cargo init <template>
  • Add this functionality to cargo new --template

PS: I'd be happy to clarify anything in case I missed some information

@ranile ranile added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Aug 8, 2021
@ranile ranile changed the title Allow creating new projects from pre-defined t Allow creating new projects from pre-defined templates Aug 8, 2021
@ehuss
Copy link
Contributor

ehuss commented Aug 9, 2021

Thanks for the request! I'm going to close this as a duplicate of #5151. Adding template support will require an RFC (such as rust-lang/rfcs#2922).

@ehuss ehuss closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants