1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! The prelude pulls in all the main types, traits, and macros: //! //! - [`Request`](struct.Request.html) //! - [`Response`](struct.Response.html) //! - [`Responder`](trait.Responder.html) //! - [`Method`](enum.Method.html) //! - [`Router`](struct.Router.html) //! - [`run!`](macro.run.html) //! - [`routes!`](macro.routes.html) //! - [`asset_dir!`](macro.asset_dir.html) //! - [`use_state!`](macro.use_state.html) pub use crate::{ asset, asset_dir, method::Method, request::Request, responder::Responder, response::Response, router::Router, routes, run, }; pub use crate::use_state; #[cfg(feature = "hatter")] pub use hatter; #[cfg(feature = "horror")] pub use horrorshow;