Crate zino

source ·
Expand description

github crates-io docs-rs

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 ntex.

§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.21", features = ["axum"] }
use zino::prelude::*;

fn main() {
    zino::Cluster::boot().run()
}

§Feature flags

The following optional features are available:

NameDescriptionDefault?
actixEnables the integration with actix-web.No
axumEnables the integration with axum.No
dioxusEnables the integration with dioxus.No
i18nEnables the support for internationalization.No
jwtEnables the support for JSON Web Token.No
ntexEnables the integration with ntex.No
ormEnables the ORM for MySQL, PostgreSQL or SQLite.No

Modules§

Traits§

Type Aliases§

  • HTTP server cluster for axum.
  • A specialized request extractor for axum.
  • A specialized response for axum.
  • A specialized Result type for axum.