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
40
41
42
43
44
45
46
47
48
49
//! fastrust - A FastAPI-inspired web framework for building APIs in Rust.
//!
//! fastrust provides a simple, intuitive API for building web services with
//! automatic OpenAPI 3.0 specification generation and Swagger UI support.
//!
//! # Example
//!
//! ```rust,no_run
//! use fastrust::{APIApp, APIRouter, RouteConfig};
//! use axum::extract::Path;
//!
//! async fn hello(Path(name): Path<String>) -> String {
//! format!("Hello {}\n", name)
//! }
//!
//! #[tokio::main]
//! async fn main() {
//! let mut api = APIRouter::new("/api");
//! api.get("/hello/{name}", hello, RouteConfig::default());
//!
//! APIApp::new()
//! .set_title("My API")
//! .set_port(8080)
//! .register_router(api)
//! .run().await;
//! }
//! ```
//!
//! # Features
//!
//! - FastAPI-inspired API design
//! - Automatic OpenAPI 3.0 specification generation
//! - Built-in Swagger UI at `/docs`
//! - Type-safe request/response schemas via `schemars`
//! - Built on top of axum
pub use APIApp;
pub use ;
pub use canonicalize_path;
pub use InspectSignature;
pub use ;