Skip to main content

axoasset/
lib.rs

1#![deny(missing_docs)]
2#![allow(clippy::result_large_err)]
3
4//! # axoasset
5//! > 📮 load, write, and copy remote and local assets
6//!
7//! this library is a utility focused on managing both local (filesystem) assets
8//! and remote (via http/https) assets. the bulk of the logic is not terribly
9//! interesting or uniquely engineered; the purpose this library is primarily
10//! to unify and co-locate the logic to make debugging simpler and error handling
11//! more consistent and comprehensive.
12
13#[cfg(any(feature = "compression-zip", feature = "compression-tar"))]
14pub(crate) mod compression;
15pub(crate) mod dirs;
16pub mod error;
17pub mod local;
18#[cfg(feature = "remote")]
19pub mod remote;
20pub mod source;
21pub mod spanned;
22
23pub use error::AxoassetError;
24pub use local::LocalAsset;
25#[cfg(feature = "remote")]
26pub use remote::AxoClient;
27// Simplifies raw access to reqwest without depending on a separate copy
28#[cfg(feature = "remote")]
29pub use reqwest;
30#[cfg(feature = "json-serde")]
31pub use serde_json;
32#[cfg(feature = "yaml-serde")]
33pub use serde_yaml_bw;
34pub use source::SourceFile;
35pub use spanned::Spanned;
36#[cfg(feature = "toml-serde")]
37pub use toml;
38#[cfg(feature = "toml-edit")]
39pub use toml_edit;