| Crates.io | cargo-rustapi |
| lib.rs | cargo-rustapi |
| version | 0.1.207 |
| created_at | 2026-01-05 20:45:24.03167+00 |
| updated_at | 2026-01-26 00:04:35.639694+00 |
| description | The official CLI tool for the RustAPI framework. Scaffold new projects, run development servers, and manage database migrations. |
| homepage | |
| repository | https://github.com/Tuntii/RustAPI |
| max_upload_size | |
| id | 2024552 |
| size | 125,049 |
The official CLI tool for the RustAPI framework.
Use this tool to scaffold new projects, generate code, and fast-track your development workflow.
cargo install cargo-rustapi
Use the new command to generate a project structure.
# Interactive mode (Recommended)
cargo rustapi new my-app
# Quick start with specific template
cargo rustapi new my-app --template api
Available Templates:
minimal: Basic main.rs and Cargo.toml.api: REST API structure with separated handlers and models.web: Web application with HTML templates (rustapi-view).full: Complete example with Database, Auth, and Docker support.Run your application with hot-reloading (requires cargo-watch).
cargo rustapi run
Save time by generating boilerplate.
# Generate a handler function and register it
cargo rustapi generate handler users
# Generate a database model
cargo rustapi generate model User
# Generate a full CRUD resource (Model + Handlers + Tests)
cargo rustapi generate crud product
cargo rustapi migrate run
cargo rustapi migrate revert