rapid_rs/
lib.rs

1//! # rapid-rs
2//!
3//! Zero-config, batteries-included web framework for Rust.
4//! FastAPI meets Spring Boot, powered by Axum.
5//!
6//! ## Quick Start
7//!
8//! ```rust,no_run
9//! use rapid_rs::prelude::*;
10//!
11//! #[tokio::main]
12//! async fn main() {
13//!     App::new()
14//!         .auto_configure()
15//!         .run()
16//!         .await
17//!         .unwrap();
18//! }
19//! ```
20//!
21//! ## With Authentication
22//!
23//! ```rust,ignore
24//! use rapid_rs::prelude::*;
25//! use rapid_rs::auth::{AuthConfig, auth_routes};
26//!
27//! #[tokio::main]
28//! async fn main() {
29//!     let auth_config = AuthConfig::from_env();
30//!     
31//!     App::new()
32//!         .auto_configure()
33//!         .mount(auth_routes(auth_config))
34//!         .run()
35//!         .await
36//!         .unwrap();
37//! }
38//! ```
39
40pub mod app;
41pub mod config;
42pub mod error;
43pub mod extractors;
44pub mod prelude;
45
46#[cfg(feature = "auth")]
47pub mod auth;
48
49pub use app::App;
50pub use error::{ApiError, ApiResult};
51pub use extractors::ValidatedJson;