loadsmith_install/lib.rs
1//! Install, remove, and list mod files for the loadsmith mod-manager library.
2//!
3//! This is an internal crate of the [`loadsmith`] workspace. Most consumers
4//! should depend on the `loadsmith` facade crate instead of using this
5//! crate directly.
6//!
7//! # Examples
8//!
9//! ```rust
10//! use loadsmith_install::ConflictStrategy;
11//! use loadsmith_install::install;
12//! use loadsmith_install::uninstall;
13//! use loadsmith_install::extract;
14//! use loadsmith_install::GlobRule;
15//! use loadsmith_install::RouteRule;
16//! use loadsmith_install::InstallRule;
17//! use loadsmith_install::InstallRuleset;
18//!
19//! // Each public type and function is available at the crate root.
20//! let strategy = ConflictStrategy::Overwrite;
21//! assert_eq!(format!("{strategy:?}"), "Overwrite");
22//! ```
23
24mod error;
25mod ops;
26mod rule;
27mod zip;
28
29pub use error::{Error, Result};
30pub use ops::{
31 extract::extract,
32 install::{ConflictStrategy, install},
33 uninstall::uninstall,
34};
35pub use rule::{GlobRule, InstallRule, InstallRuleset, OwnedInstallRuleset, RouteRule};