tork 0.1.0

A FastAPI-style backend web framework for Rust, built on Hyper and Tokio. Annotation-based routers, dependency injection, and OpenAPI out of the box.
Documentation

Tork — a FastAPI-style backend web framework for Rust, built on Hyper and Tokio.

This is the facade crate: the single crate end users depend on. It re-exports the runtime from tork-core, the procedural macros from tork-macros, and, when the openapi feature is enabled, the OpenAPI support from tork-openapi.

Example

use tork::{App, OpenApi};

#[tork::main]
async fn main() -> tork::Result<()> {
    App::new()
        .include_router(users::router())
        .openapi(OpenApi::new().title("My API").version("1.0.0").docs("/docs"))
        .serve("0.0.0.0:8000")
        .await
}