1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
/// Utilities for reading and writing environment variables.
pub mod env;
/// Utilities for reading and writing files and directories.
pub mod fs;
mod fs_error;
#[cfg(feature = "fs-lock")]
mod fs_lock; // Exported from fs
#[cfg(feature = "glob")]
/// Utilities for globbing the file system.
pub mod glob;
#[cfg(feature = "glob")]
mod glob_error;
#[cfg(feature = "json")]
/// Utilities for parsing and formatting JSON, backed by `serde_json`.
pub mod json;
#[cfg(feature = "json")]
mod json_error;
/// Utilities for common network patterns.
#[cfg(feature = "net")]
pub mod net;
#[cfg(feature = "net")]
mod net_error;
#[cfg(feature = "toml")]
/// Utilities for parsing and formatting TOML, backed by `toml`.
pub mod toml;
#[cfg(feature = "toml")]
mod toml_error;
#[cfg(feature = "yaml")]
/// Utilities for parsing and formatting YAML, backed by `serde_yaml`.
pub mod yaml;
#[cfg(feature = "yaml")]
mod yaml_error;
/// Utilities for accessing common OS directories.
pub use dirs;
#[macro_export]
macro_rules! string_vec {
() => {{
Vec::<String>::new()
}};
($($item:expr),+ $(,)?) => {{
vec![
$( String::from($item), )*
]
}};
}