Re-exports Reference

Complete reference of all types and functions re-exported by lighty-launcher.

Module Organization

lighty-launcher
├── auth          // Authentication providers
├── event         // Event system (with "events" feature)
├── java          // Java runtime management
├── launch        // Game launching and installation
├── loaders       // Mod loader implementations
├── version       // Version builders
├── core          // Core utilities
├── macros        // Utility macros
├── tauri         // Tauri integration (with "tauri-commands" feature)
└── prelude       // Common imports

Authentication Module (lighty_launcher::auth)

Source: lighty-auth

Types

Type
Description
Defined In

Authenticator

Trait for authentication providers

lighty_auth

UserProfile

User authentication data

lighty_auth

UserRole

User role (User, Admin)

lighty_auth

AuthProvider

Authentication provider enum

lighty_auth

AuthResult<T>

Result type for authentication operations

lighty_auth

AuthError

Authentication error types

lighty_auth

Providers

Provider
Description

OfflineAuth

Offline authentication with UUID v5 generation

MicrosoftAuth

Microsoft OAuth 2.0 authentication

AzuriomAuth

Azuriom CMS integration

Functions

Function
Description

generate_offline_uuid(username: &str)

Generate deterministic UUID for offline mode

Usage:

Detailed docs: lighty-auth


Events Module (lighty_launcher::event)

Source: lighty-event Requires: events feature

Core Types

Type
Description

EventBus

Multi-producer, multi-consumer event bus

EventReceiver

Receiver for events (from subscribe())

Event

Main event enum

Event Types

Event
Description

AuthEvent

Authentication events

JavaEvent

Java download/installation events

LaunchEvent

Game installation/launch events

LoaderEvent

Loader metadata fetching events

CoreEvent

Core operations (extraction, etc.)

Instance Events

Event
Description

InstanceLaunchedEvent

Game instance launched

InstanceExitedEvent

Game instance exited

ConsoleOutputEvent

Console output line

InstanceDeletedEvent

Instance deleted

Other Types

Type
Description

ConsoleStream

Stdout or Stderr

EventReceiveError

Error receiving events

EventTryReceiveError

Error trying to receive

EventSendError

Error sending events

EVENT_BUS

Global event bus singleton

Usage:

Detailed docs: lighty-event


Java Module (lighty_launcher::java)

Source: lighty-java

Types

Type
Description

JavaDistribution

Java distribution enum (Temurin, GraalVM, Zulu, Liberica)

DistributionSelection

Distribution selection helper

JavaRuntime

Java process executor

JreError

JRE download errors

JreResult<T>

Result type for JRE operations

JavaRuntimeError

Runtime execution errors

JavaRuntimeResult<T>

Result type for runtime operations

DistributionError

Distribution errors

DistributionResult<T>

Result type for distribution operations

Modules

Module
Description

jre_downloader

JRE download and installation functions

Usage:

Detailed docs: lighty-java


Launch Module (lighty_launcher::launch)

Source: lighty-launch

Traits

Trait
Description

Launch

Launch builder trait (auto-implemented for VersionInfo types)

Installer

Installation trait

InstanceControl

Instance management trait (⚠️ must import!)

Types

Type
Description

LaunchBuilder

Fluent API for configuring launch

LaunchConfig

Launch configuration

DownloaderConfig

Download configuration (max retries, concurrency)

LaunchArguments

Argument building trait

Functions

Function
Description

init_downloader_config(config: DownloaderConfig)

Configure global downloader settings

Errors

Type
Description

InstallerError

Installation errors

InstallerResult<T>

Result type for installer operations

InstanceError

Instance management errors

InstanceResult<T>

Result type for instance operations

Launch Keys (lighty_launcher::launch::keys)

All placeholder constants for argument customization:

Constant
Placeholder
Value

KEY_AUTH_PLAYER_NAME

${auth_player_name}

"auth_player_name"

KEY_AUTH_UUID

${auth_uuid}

"auth_uuid"

KEY_AUTH_ACCESS_TOKEN

${auth_access_token}

"auth_access_token"

KEY_AUTH_XUID

${auth_xuid}

"auth_xuid"

KEY_CLIENT_ID

${clientid}

"clientid"

KEY_USER_TYPE

${user_type}

"user_type"

KEY_USER_PROPERTIES

${user_properties}

"user_properties"

KEY_VERSION_NAME

${version_name}

"version_name"

KEY_VERSION_TYPE

${version_type}

"version_type"

KEY_GAME_DIRECTORY

${game_directory}

"game_directory"

KEY_ASSETS_ROOT

${assets_root}

"assets_root"

KEY_NATIVES_DIRECTORY

${natives_directory}

"natives_directory"

KEY_LIBRARY_DIRECTORY

${library_directory}

"library_directory"

KEY_ASSETS_INDEX_NAME

${assets_index_name}

"assets_index_name"

KEY_LAUNCHER_NAME

${launcher_name}

"launcher_name"

KEY_LAUNCHER_VERSION

${launcher_version}

"launcher_version"

KEY_CLASSPATH

${classpath}

"classpath"

KEY_CLASSPATH_SEPARATOR

${classpath_separator}

"classpath_separator"

Usage:

Detailed docs: lighty-launch


Loaders Module (lighty_launcher::loaders)

Source: lighty-loaders

Types

Type
Description

Loader

Loader enum (Vanilla, Fabric, Quilt, Forge, NeoForge, etc.)

VersionInfo

Trait for version information

LoaderExtensions

Trait for loader operations (auto-implemented)

InstanceSize

Instance size calculation

Version Metadata

Type
Description

Version

Complete version metadata

VersionMetaData

Version metadata wrapper

Library

Library dependency

Asset

Asset file

AssetIndex

Asset index

Arguments

Game/JVM arguments

MainClass

Main class info

Mods

Mod list

Native

Native library

Loader Implementations

Module
Loader

vanilla

Vanilla Minecraft

fabric

Fabric mod loader

quilt

Quilt mod loader

forge

Forge mod loader

neoforge

NeoForge mod loader

lighty_updater

LightyUpdater custom server

optifine

OptiFine

Utilities

Module
Description

cache

Manifest caching utilities

error

Error types

manifest

Manifest fetching

query

Version querying

Usage:

Detailed docs: lighty-loaders


Version Module (lighty_launcher::version)

Source: lighty-version

Types

Type
Description

VersionBuilder

Standard version builder for all loaders

LightyVersionBuilder

Custom server version builder

Usage:

Detailed docs: lighty-version


Core Module (lighty_launcher::core)

Source: lighty-core

Types

Type
Description

AppState

Application state and project directories

AppStateError

AppState errors

AppStateResult<T>

AppState result type

SystemError

System operation errors

SystemResult<T>

System result type

ExtractError

Archive extraction errors

ExtractResult<T>

Extract result type

DownloadError

Download errors

DownloadResult<T>

Download result type

HashError

Hashing errors

HashResult<T>

Hash result type

Modules

Module
Description

system

System detection and operations

hosts

Hosts file management

download

HTTP download utilities

extract

Archive extraction (ZIP, TAR.GZ)

hash

SHA1 hashing utilities

Functions

Function
Description

verify_file_sha1(path, hash)

Verify file SHA1 (async)

verify_file_sha1_streaming(path, hash)

Verify with streaming

calculate_file_sha1_sync(path)

Calculate SHA1 (blocking)

verify_file_sha1_sync(path, hash)

Verify SHA1 (blocking)

calculate_sha1_bytes(bytes)

Calculate SHA1 from bytes

calculate_sha1_bytes_raw(bytes)

Raw SHA1 calculation

Usage:

Detailed docs: lighty-core


Macros Module (lighty_launcher::macros)

Source: lighty-core

Tracing Macros

Macro
Description
Requires Feature

trace_debug!()

Debug level logging

tracing (no-op otherwise)

trace_info!()

Info level logging

tracing (no-op otherwise)

trace_warn!()

Warning level logging

tracing (no-op otherwise)

trace_error!()

Error level logging

tracing (no-op otherwise)

time_it!(name, block)

Performance timing

tracing (no-op otherwise)

File System Macros

Macro
Description

mkdir!(path)

Async directory creation with error logging

join_and_mkdir!(base, segment)

Join path and create directory

join_and_mkdir_vec!(base, segments)

Join multiple segments and create

mkdir_blocking!(path)

Blocking directory creation

Usage:


Tauri Module (lighty_launcher::tauri)

Source: lighty-tauri Requires: tauri-commands feature

Plugin

Function
Description

lighty_plugin()

Main Tauri plugin with all commands

Commands

All Tauri commands are re-exported:

  • Authentication commands

  • Launch commands

  • Java distribution commands

  • Loader commands

  • Version management commands

  • Path utilities

Types

Type
Description

AppState

Tauri app state

VersionConfig

Version configuration

LaunchConfig

Launch configuration

LaunchResult

Launch result

LoaderInfo

Loader information

JavaDistInfo

Java distribution info

Usage:


Prelude (lighty_launcher::prelude)

Convenient re-exports of most commonly used types.

Included Types

Usage:


Root Re-exports

Most commonly used types are also available at the root:


Import Patterns

Pattern 2: Specific Modules

Pattern 3: Root + Modules

Pattern 4: Direct Crate Access


Crate Documentation

Last updated