Preview version, will not guarantee the stability of the API! Do NOT use in production environment!
Elegant, Clean Rust development framework🛸
TARDIS([tɑːrdɪs] "Time And Relative Dimension In Space") From "Doctor Who".
trace
tracing operationcrypto
encryption, decryption and digest operationsfuture
asynchronous operationsreldb
relational database operations(based on SeaORM)web-server
web service operations(based on Poem)web-client
web client operationscache
cache operationsmq
message queue operationsmail
mail send operationsos
object Storage operationstest
unit test operationsThe core operations of the framework all use TardisFuns
as an entry point.
E.g.
TardisFuns::init(relative_path) // Initialize the configuration
TardisFuns::field.x // Some field operations
TardisFuns::reldb().x // Some relational database operations
TardisFuns::web_server().x // Some web service operations
Dependency Configuration
toml
[dependencies]
tardis = { version = "^0", features = ["web-server"] }
poem-openapi = { version = "^2"}
Processor Configuration ```ignore pub struct Api;
impl Api { #[oai(path = "/hello", method = "get")] async fn index(&self, name: Query
Startup class configuration ```ignore
async fn main() -> TardisResult<()> { // Initial configuration TardisFuns::init("config").await?; // Register the processor and start the web service TardisFuns::webserver().addmodule("", Api).start().await } ```
|-- examples
|-- reldb Relational database usage example
|-- web-basic Web service Usage Example
|-- web-client Web client Usage Example
|-- webscoket WebSocket Usage Example
|-- cache Cache Usage Example
|-- mq Message Queue Usage Example
|-- todo A complete project usage example
|-- multi-apps Multi-application aggregation example
|-- perf-test Performance test case
Thanks to Jetbrains
for the Open Source License