Skip to main content

hexomc_lib/
lib.rs

1pub mod assets;
2pub mod auth;
3pub mod download;
4pub mod error;
5pub mod install;
6pub mod java;
7pub mod launch;
8pub mod mods;
9pub mod version;
10
11pub use error::{HexoError, Result};
12
13pub use version::manifest::{
14    fetch_version_manifest, fetch_version_json,
15    VersionEntry, VersionManifest, VersionJson,
16};
17
18pub use download::{download_file, download_batch, DownloadTask};
19
20pub use install::vanilla::{install_vanilla, InstanceConfig, LoaderType, LibEntry, NativeEntry};
21pub use install::fabric::{install_fabric, get_fabric_loader_versions};
22pub use install::forge::{install_forge, get_forge_versions};
23pub use install::neoforge::{install_neoforge, get_neoforge_versions};
24
25pub use install::loader::{
26    LoaderInstaller, ProgressFn, no_progress,
27    VanillaInstaller, FabricInstaller, ForgeInstaller, NeoForgeInstaller,
28    create_loader, install_with_loader,
29};
30
31pub use java::detector::{find_java, JavaInfo};
32pub use java::installer::download_java;
33
34pub use launch::launcher::{launch, launch_with_channel, launch_with_output, LaunchOptions};
35pub use launch::output::{no_output, GameProcess, OutputFn, OutputKind, OutputLine};
36
37pub use auth::microsoft::{
38    request_device_code, poll_device_code, refresh_token,
39    AuthResult, DeviceCodeInfo,
40};
41
42pub use mods::detector::{detect_mods, ModInfo, ModLoader};
43pub use mods::curseforge::CurseForgeClient;
44pub use mods::modrinth::{ModrinthClient, MrProject, MrVersion};
45pub use mods::updater::{check_updates, update_mod, ModUpdate, UpdateSource};
46
47pub use assets::detector::{
48    detect_resource_packs, detect_shader_packs, detect_maps,
49    ResourcePack, ShaderPack, WorldMap,
50};