2022-06-27 15:53:25 -07:00
|
|
|
/*!
|
|
|
|
|
# Theseus
|
2021-07-09 20:05:04 -07:00
|
|
|
|
2022-06-27 15:53:25 -07:00
|
|
|
Theseus is a library which provides utilities for launching minecraft, creating Modrinth mod packs,
|
|
|
|
|
and launching Modrinth mod packs
|
|
|
|
|
*/
|
2022-07-15 15:39:38 +00:00
|
|
|
#![warn(unused_import_braces)]
|
2022-06-27 15:53:25 -07:00
|
|
|
#![deny(unused_must_use)]
|
2021-06-29 22:32:52 -07:00
|
|
|
|
2022-07-15 15:39:38 +00:00
|
|
|
#[macro_use]
|
|
|
|
|
mod util;
|
|
|
|
|
|
2022-06-27 15:53:25 -07:00
|
|
|
mod api;
|
|
|
|
|
mod error;
|
2023-04-16 10:12:37 -07:00
|
|
|
mod event;
|
2022-06-27 15:53:25 -07:00
|
|
|
mod launcher;
|
2023-06-30 08:11:32 -07:00
|
|
|
mod logger;
|
2022-06-27 15:53:25 -07:00
|
|
|
mod state;
|
2021-12-15 22:24:08 -07:00
|
|
|
|
2022-06-27 15:53:25 -07:00
|
|
|
pub use api::*;
|
|
|
|
|
pub use error::*;
|
2024-08-30 10:42:58 -07:00
|
|
|
pub use event::{
|
2025-05-02 04:51:17 -05:00
|
|
|
EventState, LoadingBar, LoadingBarType, emit::emit_loading,
|
|
|
|
|
emit::init_loading,
|
2024-08-30 10:42:58 -07:00
|
|
|
};
|
2023-06-30 08:11:32 -07:00
|
|
|
pub use logger::start_logger;
|
2022-06-27 15:53:25 -07:00
|
|
|
pub use state::State;
|
2025-09-29 09:28:31 -06:00
|
|
|
|
2026-01-07 21:11:18 -05:00
|
|
|
pub fn launcher_user_agent() -> String {
|
|
|
|
|
const LAUNCHER_BASE_USER_AGENT: &str =
|
|
|
|
|
concat!("modrinth/theseus/", env!("CARGO_PKG_VERSION"),);
|
|
|
|
|
|
|
|
|
|
format!(
|
|
|
|
|
"{} ({}; support@modrinth.com)",
|
|
|
|
|
LAUNCHER_BASE_USER_AGENT,
|
|
|
|
|
std::env::consts::OS
|
|
|
|
|
)
|
|
|
|
|
}
|