cargo-rustapi-0.1.6 is not a library.
cargo-rustapi
CLI tool for the RustAPI framework - Project scaffolding and development utilities.
Installation
Usage
Create a New Project
# Interactive mode
# With template
# With features
Available Templates
minimal- Bare minimum RustAPI app (default)api- REST API with CRUD exampleweb- Web app with templatesfull- Full-featured with JWT, CORS, database
Run Development Server
# Run with auto-reload
# Run on specific port
# Run with specific features
Generate Code
# Generate a new handler
# Generate a model
# Generate CRUD endpoints
Commands
| Command | Description |
|---|---|
new <name> |
Create a new RustAPI project |
run |
Run development server with auto-reload |
generate <type> <name> |
Generate code from templates |
docs |
Open API documentation |
Project Templates
Minimal Template
my-project/
├── Cargo.toml
├── src/
│ └── main.rs
└── .gitignore
API Template
my-project/
├── Cargo.toml
├── src/
│ ├── main.rs
│ ├── handlers/
│ │ └── mod.rs
│ ├── models/
│ │ └── mod.rs
│ └── error.rs
├── .env.example
└── .gitignore
Web Template
my-project/
├── Cargo.toml
├── src/
│ ├── main.rs
│ └── handlers/
├── templates/
│ ├── base.html
│ └── index.html
├── static/
│ └── style.css
└── .gitignore
License
MIT OR Apache-2.0