Preview version, will not guarantee the stability of the API! Do NOT use in production environment!

====

Elegant, clean Rust development framework🛸

image::https://github.com/ideal-world/tardis/actions/workflows/ci.yml/badge.svg["build status",link="https://github.com/ideal-world/tardis/actions/workflows/ci.yml"] image::https://codecov.io/gh/ideal-world/tardis/branch/main/graph/badge.svg?token=L1LQ8DLUS2["test coverage",link="https://codecov.io/gh/ideal-world/tardis"] image:https://img.shields.io/github/license/ideal-world/tardis["license",link="https://github.com/ideal-world/tardis/blob/main/LICENSE"]

TIP: TARDIS([tɑːrdɪs] "Time And Relative Dimension In Space") From "Doctor Who".

== 💖 Core functions

== ⚙️Feature description

== 🚀 Quick start

The core operations of the framework all use TardisFuns as an entry point. E.g.

TardisFuns::init(relativepath) // Initialize the configuration TardisFuns::field.x // Some field operations TardisFuns::reldb().x // Some relational database operations TardisFuns::webserver().x // Some web service operations

=== Web service example

[source,toml]

.Dependency Configuration

[dependencies] tokio = { version = "1.15.0", features = ["macros"] } tardis = { version = "0", features = ["web-server"] }

poem-openapi = { version = "1.2.39"}

[source,rust]

.Processor Configuration

pub struct Api;

[OpenApi]

impl Api { #[oai(path = "/hello", method = "get")] async fn index(&self, name: Query>) -> TardisResp { match name.0 { Some(name) => TardisResp::ok(format!("hello, {}!", name)), None => TardisResp::err(TardisError::NotFound("name does not exist".to_string())), } }

}

[source,rust]

.Startup class configuration

[tokio::main]

async fn main() -> TardisResult<()> { // Initial configuration TardisFuns::init::("config").await?; // Register the processor and start the web service TardisFuns::webserver().addmodule("", Api).start().await

}

=== More examples


|-- examples |-- reldb Relational database usage example |-- web-basic Web service Usage Example |-- web-client Web client Usage Example |-- cache Cache Usage Example |-- mq Message Queue Usage Example

|-- todo A complete project usage example