pub use comfund_macros::contract;
#[cfg(any(feature = "reqwest"))]
pub use paths;
#[cfg(feature = "reqwest")]
pub use reqwest_exports::*;
#[cfg(feature = "reqwest")]
mod reqwest_exports {
#[derive(Debug)]
pub enum ClientError {
PathSerializerError(paths::path_serializer::Error),
Reqwest(reqwest::Error),
}
impl From<reqwest::Error> for ClientError {
fn from(value: reqwest::Error) -> Self {
Self::Reqwest(value)
}
}
impl From<::paths::path_serializer::Error> for ClientError {
fn from(value: ::paths::path_serializer::Error) -> Self {
Self::PathSerializerError(value)
}
}
}
#[cfg(feature = "reqwest")]
pub type Result<T> = std::result::Result<T, ClientError>;