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
//! # Basic Usage:
//! ```no_run
//! use thermite::api::get_package_index;
//! use thermite::download_file;
//! use thermite::install_mod;
//! use std::path::Path;
//!
//! async fn example() {
//!     let index = get_package_index().await.unwrap();
//!     if let Some(md) = index.iter().find(|e| e.name == "server_utilities") {
//!         let latest = md.get_latest().unwrap();
//!         let zipped = download_file(&latest.url, Path::new("server_utils.zip")).await.unwrap();
//!         install_mod(&zipped, Path::new("mods")).unwrap();
//!     }    
//! }
//! ```

#[cfg(test)]
mod test;

pub mod api;
pub mod core;
pub mod error;
pub mod model;

// Important functions and structs
pub mod prelude {
    pub use crate::core::manage::{install_mod, install_northstar, install_with_sanity, uninstall};
    pub use crate::core::utils::{find_mods, get_enabled_mods, resolve_deps};
    pub use crate::error::ThermiteError;
}