Configuring `cargo init`

Hi all,

I've looked around but I can't actually find anything about configuring the behaviour of cargo init. Mostly I'm very happy with it, the only thing I'd like is for it to also create a .pre-commit-config.yaml to run cargo fmt as a pre-commit hook to keep the project nicely formatted. Does anyone know if this is possible? if not, would such an option have any hope of making it into the project?

Thanks!

I don't think cargo has that feature. You can use cookiecutter or project-init instead.

A few years ago I was very enthusiast about cookiecutter, then I realized I init projects less then a handful times a month.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.