Skip to main content

doido_controller/
lib.rs

1pub mod config;
2pub mod constraints;
3pub mod context;
4pub mod cookies;
5pub mod csrf;
6pub mod env_override;
7pub mod flash;
8pub mod health;
9pub mod initializers;
10pub mod logging;
11pub mod params;
12pub mod rate_limit;
13pub mod rescue;
14pub mod respond;
15pub mod response;
16pub mod route_table;
17pub mod secret;
18pub mod server;
19pub mod signing;
20// Tower middleware stacks and sessions (the former `doido-middleware` crate).
21pub mod session;
22pub mod stack;
23pub mod testing;
24
25// Re-exported so `routes!`-generated code and application crates reach axum through
26// `doido_controller::axum` (generated apps: `doido::controller::axum`). Do not depend
27// on the `axum` crate directly outside this module.
28pub use axum;
29pub use config::{Config, LoggerConfig, ServerConfig, YamlConfig};
30pub use context::{Context, IntoActionResponse};
31pub use cookies::CookieJar;
32// `before_action`/`after_action` are helper attributes consumed by `#[controller]`,
33// not standalone macros, so only `controller` and `routes` are re-exported.
34pub use doido_controller_macros::{controller, routes};
35pub use flash::Flash;
36pub use params::Params;
37pub use rescue::RescueHandlers;
38pub use response::Response;
39pub use route_table::{all_routes, print_routes, register_routes, RouteEntry};
40pub use server::{start_server, start_server_with};
41pub use session::{
42    CacheSessionStore, CookieSessionStore, EncryptedCookieSessionStore, Session, SessionStore,
43};
44pub use stack::MiddlewareStack;