Expand description
Project scaffolding and code generation used by the capy binary.
Structs§
- Frontend
Config - Frontend configuration; the directory is conventionally
frontend/. - Project
Config - Small, explicit project metadata loaded from
capy.toml.
Enums§
- Frontend
Driver - The frontend stacks supported by Capy.
- Generator
- Supported generators, each producing a registered, compilable Rust module.
Functions§
- controller_
route - Exact route-builder declaration for a generated controller. Routing stays
explicit because route modules may contain arbitrary application Rust. The
suggested path is the snake-case name without
_controller; customize it before adding this line toroutes/api.rs’sRouteschain (mounted at/api). - find_
project - Find a Capy application from its root or any nested directory.
- generate
- Generate a file and update its explicit module registry without overwrites. Migration registry markers must remain present; other code is left intact.
- make_
auth - Install conventional auth without overwriting application-owned code.
- make_
auth_ with_ frontend - Install framework-owned auth and optionally its application-owned React experience. Passing –frontend after a backend-only installation adds only the missing browser flow.
- make_
job - Generate a job with explicit registration. First use installs the optional feature, application hook and native migration. Writes are locked, formatted and rolled back on failure; application files are never silently replaced.
- make_
mail - Generate an application-owned mailable and compiled text/HTML templates.
- make_
notification - Generate a mail notification without unused channel stubs or a runtime registry.
- make_
resource - Generate application-owned CRUD, explicit contracts, migrations, tests and fixtures. Existing files are never overwritten. Registry changes commit together or roll back.
- new_
project - Create a project without overwriting an existing directory.
- new_
project_ with_ frontend - Create a project with an explicit frontend selection.