gize-core
Core domain model and conventions for the Gize framework.
gize-core is the framework-agnostic heart of Gize. It knows nothing about Axum, SQLx, or
the CLI — it only defines the shared vocabulary the rest of the workspace builds on:
Manifest— the typed representation of thegize.tomlproject manifest.ModelSpec,Field,FieldType— how a model and its fields are described, including the Gize type → Rust type → PostgreSQL type mapping.- Naming conventions — pluralization and snake/Pascal case helpers so
Usermaps to theuserstable consistently across every generator.
This crate is the abstraction seam that keeps alternative targets (e.g. a future non-Axum backend) feasible — see ADR-001.
Usage
[]
= "0.2"
use ;
let spec = new;
Part of the Gize workspace
| Crate | Role |
|---|---|
gize-core |
Domain model & conventions (this crate) |
gize-generator |
Codegen engine |
gize-templates |
Templates for generated code |
gize-db |
Data-layer conventions + migrations |
gize |
The gize CLI |
License
Licensed under either of Apache-2.0 or MIT at your option.