If you want to investigate template support, I'd suggest starting with https://github.com/rust-lang/rfcs/pull/2922 and reading the comments there and trying to figure out some solution from there.
There have been a few other discussions. I'll link a few things here:
- [Pre-RFC] Cargo Templates
- [Pre-RFC]: cargo new templates
- Tracking issue: Cargo templates · Issue #5151 · rust-lang/cargo · GitHub
In the meantime, there are some other template tools you may be interested in:
- https://crates.io/crates/cargo-generate
- GitHub - Keats/kickstart: A scaffolding tool to get new projects up and running quickly
And a few other non-rust project template tools:
- GitHub - cookiecutter/cookiecutter: A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.
- GitHub - gatsbyjs/gatsby-starter-blog: Gatsby starter for creating a blog
- https://docs.npmjs.com/cli/init
- GitHub - Rich-Harris/degit: Straightforward project scaffolding
- https://yeoman.io/
- Welcome to mr.bob’s documentation! — mr.bob 0.2.dev0 documentation
- Rails Application Templates — Ruby on Rails Guides
(And probably a few hundred others.)