You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo new <project-name> --template "path/to/template/folder/"# or
cargo new <project-name> --template github # Cargo could automatically search the folder 'github' in .cargo/templates/
Or something like that 😃
Notes
No response
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! At this time, we would like to avoid adding specific settings for configuring the initial project. In the future, we would like to see cargo support customizable templates so that you can define whatever kind of structure you want (tracked in #5151). In the meantime, you might want to check out a project like cargo-generate which allows some customization.
Problem
I like the idea of having a git file in my new projects, however the one currently produced by cargo is severely lacking in customization.
Proposed Solution
Solution 1
I propose to add these options in the config.toml of cargo:
And cargo have only to copy/paste the file
Solution 2
To go further!
Having one default directory create by the user himself
Solution 3
To go even further!
We could create a set of default directories that we could choose with an option.
With a
.cargo/templates/
folder for example:Or something like that 😃
Notes
No response
The text was updated successfully, but these errors were encountered: