Expand description
zino
is a next-generation framework for composable applications in Rust
which emphasizes simplicity, extensibility and productivity.
ยงHighlights
- ๐ Out-of-the-box features for rapid application development.
- ๐จ Minimal design, composable architecture and high-level abstractions.
- ๐ Adopt an API-first approch to development with open standards.
- โก Embrace practical conventions to get the best performance.
- ๐ Highly optimized ORM for MySQL, PostgreSQL and SQLite based on
sqlx
. - โจ Innovations on query population, field translation and model hooks.
- ๐ Lightweight scheduler for sync and async cron jobs.
- ๐ Unified access to storage services, data sources and chatbots.
- ๐ Built-in support for
tracing
,metrics
and logging. - ๐ Full integrations with
actix-web
,axum
,dioxus
and more.
ยงGetting started
You can start with the example actix-app
, axum-app
, dioxus-desktop
or ntex-app
.
Here is the simplest application to run a server:
[package]
name = "zino-app"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
[dependencies]
zino = { version = "0.33", features = ["axum"] }
โ
use zino::prelude::*;
fn main() {
zino::Cluster::boot().run()
}
ยงFeature flags
The following optional features are available:
Name | Description | Default? |
---|---|---|
actix | Enables the integration with actix-web . | No |
auth | Enables the authentication and authorization. | No |
axum | Enables the integration with axum . | No |
cookie | Enables the support for cookies. | No |
debug | Enables the features for ease of debugging. | No |
dioxus | Enables the integration with dioxus . | No |
i18n | Enables the support for internationalization. | No |
inertia | Enables the support for the Inertial protocol. | No |
jwt | Enables the support for JSON Web Token. | No |
logger | Enables the default logger. | Yes |
metrics | Enables the metrics exporter. | No |
ntex | Enables the integration with ntex . | No |
opa | Enables the support for OPA via regorus . | No |
orm | Enables the ORM for MySQL, PostgreSQL or SQLite. | No |
preferences | Enables the support for application preferences. | No |
view | Enables the HTML template rendering. | No |
Re-exportsยง
pub use zino_axum::Cluster;
pub use zino_axum::Request;
pub use zino_axum::Response;
pub use zino_axum::Result;
Modulesยง
Traitsยง
- Default
Controller - Default controller for the
Model
.