1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! 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
//! }
//! ```
pub use *;
pub use *;
pub use *;
// 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.
pub use garde as __garde;
pub use schemars as __schemars;
pub use serde as __serde;
pub use serde_json as __serde_json;