Preview version, will not guarantee the stability of the API! Do NOT use in production environment!
====
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
trace
tracing operationfuture
asynchronous operationsreldb
relational database operationsweb-server
web service operationsweb-client
web client operationscache
cache operationsmq
message queue operationstest
unit test operations== 🚀 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]
[dependencies] tokio = { version = "1.15.0", features = ["macros"] } tardis = { version = "0", features = ["web-server"] }
[source,rust]
pub struct Api;
impl Api { #[oai(path = "/hello", method = "get")] async fn index(&self, name: Query
[source,rust]
async fn main() -> TardisResult<()> {
// Initial configuration
TardisFuns::init::
=== 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