gize
Productivity-first backend framework for Rust — the gize CLI.
Gize gives you Django-like velocity — scaffolding, conventions, generators, migrations — without giving up Rust's guarantees, performance, or transparency. It generates idiomatic Rust you own: plain Axum handlers, plain SQLx queries, plain SQL migrations. No hidden runtime, no reflection, no magic. Delete Gize and you still have a working Rust codebase.
This crate provides the gize command-line binary. It orchestrates the rest of the
Gize workspace
(gize-core,
gize-generator,
gize-templates,
gize-db).
Installation
Requires Rust 1.85+ (edition 2024). Generated apps need PostgreSQL to run.
Quickstart
Build a working product API in four commands:
# 1. Scaffold a project (Axum + SQLx + PostgreSQL)
# 2. Generate a full CRUD resource
# 3. Point at a database and apply the generated migration
# 4. Run it
You now have working GET / POST / PUT / DELETE /products endpoints backed by the database.
Command reference
| Command | What it does |
|---|---|
gize new <name> |
Scaffold a new project |
gize make app <name> |
Scaffold a module and wire it in idempotently |
gize make model <Name> field:Type … |
Generate a model + migration |
gize make crud <Name> field:Type … |
Generate a full, wired CRUD resource |
gize migrate [--status] |
Apply / inspect migrations |
gize serve |
Build and run the app |
gize doctor |
Diagnose environment/project |
Generating commands support --dry-run (print the plan, write nothing) and --force
(overwrite existing files). Generators never destroy your work.
Field types
Fields are given inline as name:Type. Every model also gets id: Uuid plus created_at /
updated_at automatically.
| Gize type | Rust type | PostgreSQL type |
|---|---|---|
String |
String |
TEXT |
bool |
bool |
BOOLEAN |
i32 |
i32 |
INTEGER |
i64 |
i64 |
BIGINT |
f64 |
f64 |
DOUBLE PRECISION |
Uuid |
uuid::Uuid |
UUID |
DateTime |
chrono::DateTime<Utc> |
TIMESTAMPTZ |
Documentation
Full documentation, architecture (ADRs), and roadmap live in the project repository.
License
Licensed under either of Apache-2.0 or MIT at your option.