lighty-loaders
Overview
Quick Start
use lighty_launcher::prelude::*;
const QUALIFIER: &str = "com";
const ORGANIZATION: &str = "MyLauncher";
const APPLICATION: &str = "";
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// Initialize AppState
let _app = AppState::new(
QUALIFIER.to_string(),
ORGANIZATION.to_string(),
APPLICATION.to_string(),
)?;
let launcher_dir = AppState::get_project_dirs();
// Create instance with Fabric loader
let mut instance = VersionBuilder::new(
"my-instance",
Loader::Fabric,
"0.16.9", // Fabric loader version
"1.21.1", // Minecraft version
launcher_dir
);
// Get metadata (automatically fetched and cached)
let metadata = instance.get_metadata().await?;
trace_info!("Loaded {} with {} libraries", metadata.id, metadata.libraries.len());
Ok(())
}Supported Loaders
Loader
Feature Flag
Status
MC Versions
Features
Installation
Core Traits
VersionInfo
LoaderExtensions
Exports
In lighty_loaders
lighty_loadersIn lighty_launcher (re-exports)
lighty_launcher (re-exports)Documentation
Guide
Description
Related Crates
License
Last updated