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
//!
//! ```ignore
//! 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
//! }
//! ```
#![forbid(unsafe_code)]

pub use tork_core::*;
pub use tork_macros::*;

#[cfg(feature = "openapi")]
pub use tork_openapi::*;

// Re-exports used by code generated by `#[api_model]`. Generated derives point
// their `crate = ...` attributes here, so a user crate only needs to depend on
// `tork`. These are implementation details, not part of the stable API.
#[doc(hidden)]
pub use garde as __garde;
#[doc(hidden)]
pub use schemars as __schemars;
#[doc(hidden)]
pub use serde as __serde;
#[doc(hidden)]
pub use serde_json as __serde_json;