We need to be able to generate a project skeleton rather than requiring that a user write their own from scratch. Especially important given how complicated our package setup is.
Phase overview
Phase 1
Use Cargo Generate manually with a local project template (delivered to monorepo)
Phase 2
Move template to its own repo (In the future, can add CI/CD to ensure the template is always valid/building)
Use cargo-generate as a library directly from cargo-psibase
Backround
We need to be able to generate a project skeleton rather than requiring that a user write their own from scratch. Especially important given how complicated our package setup is.
Phase overview
cargo-generate
as a library directly fromcargo-psibase
Placeholders
package-name
- Sets the name of the Packageservice-name
- Sets the name of the generated serviceplugin-name
- Sets the name of the generated pluginOther resources