1pub use blaze_macros::{main, route, routes};
2pub use modules::*;
3pub use pkg::error::Error;
4
5pub use types::alias::*;
6pub use types::http::*;
7
8pub use http;
9pub use tokio;
10
11pub mod modules;
12pub mod pkg;
13pub mod types;
14
15pub mod internals {
16 use super::pkg::error::Error;
17 use super::types::http::{Responder, Response};
18 use std::{future::Future, pin::Pin};
19
20 pub type RespFuture = Pin<Box<dyn Future<Output = Result<Response, Error>> + Send>>;
21 pub type HttpFuture = Pin<Box<dyn Future<Output = Result<Box<dyn Responder>, Error>> + Send>>;
22}
23
24pub mod prelude {
25 pub use super::pkg::error::Error;
26 pub use super::types::alias::*;
27 pub use super::types::http::*;
28}
29
30pub(crate) mod logging {
31 pub use tracing::{debug, error, info, instrument, trace, warn};
32}