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
andntex
.
ยง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 = "2021"
[dependencies]
zino = { version = "0.25", 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 |
axum | Enables the integration with axum . | No |
debug | Enables the features for ease of debugging. | No |
dioxus | Enables the integration with dioxus . | No |
i18n | Enables the support for internationalization. | No |
jwt | Enables the support for JSON Web Token. | No |
logger | Enables the default logger. | Yes |
ntex | Enables the integration with ntex . | No |
oidc | Enables the support for OIDC via rauthy . | No |
opa | Enables the support for OPA via regorus . | No |
orm | Enables the ORM for MySQL, PostgreSQL or SQLite. | No |
Modulesยง
- Re-exports of common types in
zino-core
.
Traitsยง
- Default controller for the
Model
.
Type Aliasesยง
- HTTP server cluster for
axum
. - A specialized request extractor for
axum
. - A specialized response for
axum
. - A specialized
Result
type foraxum
.