cargo rustango new <name> — Django-style project scaffolder.
Cargo invokes external subcommands by spawning a binary called
cargo-rustango and passing rustango as the first argv. We
strip that prefix and dispatch to a verb handler:
$ cargo rustango new myapp --template fullstack $ cargo rustango new api_demo --template api $ cargo rustango new shop --template tenant
The three templates correspond to the three rustango shapes:
api— bare ORM + axum, no admin. For JSON-only services.fullstack— ORM + auto-admin (the default; matches the v0.7 README quickstart).tenant— multi-tenancy enabled, operator console wired, apex/subdomain host dispatch viaCli::tenancy().
Each template writes a self-contained Cargo project into <cwd>/<name>/:
/ Cargo.toml .env.example docker-compose.yml migrations/ src/ main.rs ← Cli::new()[.tenancy()].api(...).run() — single binary models.rs views.rs urls.rs
Once written, the user typically runs:
$ cd && docker compose up -d $ cargo run -- migrate $ cargo run