pub mod adapter;
pub mod app;
pub mod components;
pub mod env;
pub mod error;
pub mod hooks;
pub mod routing;
pub mod server;
pub mod web;
pub mod actions;
pub mod responses;
pub(crate) mod context;
#[cfg(feature = "client")]
pub mod client;
#[cfg(feature = "hooks")]
pub mod events;
#[doc(hidden)]
pub mod types;
pub type Result<T> = std::result::Result<T, crate::error::BoxError>;
pub use hashira_macros::*;
mod reexports {
pub use async_trait::async_trait;
pub use multer_derive;
}
pub use reexports::*;
pub mod consts {
#[cfg(not(feature = "client"))]
pub const IS_SERVER: bool = true;
#[cfg(feature = "client")]
pub const IS_SERVER: bool = false;
}
#[doc(hidden)]
#[cfg(feature = "internal")]
pub mod internal;
#[doc(hidden)]
pub mod utils;
#[doc(hidden)]
#[macro_export]
macro_rules! try_response {
($result:expr) => {
match $result {
Ok(res) => res,
Err(err) => {
return $crate::web::IntoResponse::into_response(
$crate::error::ServerError::from_error(err),
);
}
}
};
}