#![warn(rust_2018_idioms, rust_2018_compatibility)]
#[cfg(feature = "handle")]
pub mod handle;
pub mod io;
pub mod loader;
#[cfg(feature = "packfile_io")]
pub mod packfile_io;
#[cfg(feature = "rpc_io")]
pub mod rpc_io;
pub mod storage;
pub use crossbeam_channel;
pub use distill_core::{AssetRef, AssetTypeId, AssetUuid};
pub use loader::Loader;
#[cfg(feature = "packfile_io")]
pub use packfile_io::PackfileReader;
#[cfg(feature = "rpc_io")]
pub use rpc_io::RpcIO;
pub use storage::LoadHandle;
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + 'static>>;
#[cfg(feature = "handle")]
#[macro_export]
macro_rules! if_handle_enabled {
($($tt:tt)*) => {
$($tt)*
};
}
#[cfg(not(feature = "handle"))]
#[macro_export]
#[doc(hidden)]
macro_rules! if_handle_enabled {
($($tt:tt)*) => {};
}