Elemental
elemental-kit 0.3.0Rust 1.85+ · Edition 2024

Every element of a Minecraft launcher, in Rust.

Discover versions, prepare modded instances, resolve local Java runtimes, and spawn the JVM through one async Send + Sync interface — or adopt the persistence, object-pool, and download crates independently.

Built-in drivers
11
Workspace crates
9
Auth providers
3
Async futures
Send + Sync
src/main.rs
01 / 04
01use elemental::prelude::*;
02#[tokio::main]
03async fn main() -> anyhow::Result<()> {
let launcher = Launcher::builder()
.storage_root(".minecraft")
.runtime_providers(default_providers())
.build();
let spec = DriverSpec::vanilla(
"1.20.1".into(),
);
let prepared = launcher.prepare("Instance".into(), spec, &rt).await?;
let account = OfflineAuthorizer { username: "Player".into() }
.authorize().await?;
let cred = account.credential().await?;
let cmd = launcher
.build_launch_command(&prepared, &cred, &rt, &opts)
.await?;
let mut game = launcher.launch(cmd)?;
game.child.wait().await?;
Ok(())
}
01 // GETTING STARTED

Add elemental-kit to your Cargo.toml.

Requires Rust 1.85+ (Edition 2024) and a local Java runtime. Pick the exact modules, forwarded features, and TLS backend your application needs.

Modules
Forwarded FeaturesAuto-enables parent modules
TLS BackendSelect exactly one
Cargo.toml
Default feature set: full + shared-json + object-notify + tls-aws-lc.
02 // LAUNCHPAD DEMO

Try our launchpad CLI across every loader.

launchpad is our reference CLI built directly on elemental-kit. Run it with no arguments to open the interactive setup wizard, or pass any of the 11 supported drivers below to prepare and launch directly from your terminal.

shClone workspace & launch interactive wizard
git clone https://github.com/ElectronicWave/Elemental.git && cd Elemental
cargo run -p launchpad

Vanilla

version_json
Java 17

Mojang piston manifest resolution, asset indexing, and native library extraction.

  • Vanilla
$ cargo run -p launchpad -- vanilla 1.20.1 --instance-name MyVanilla-1.20.1

Fabric Ecosystem

version_json · profiled
Java 17

Layered loader profile merging over vanilla metadata with Maven coordinate resolution.

  • Fabric
  • Legacy Fabric
  • Babric
  • Quilt
$ cargo run -p launchpad -- fabric 1.20.1 0.16.10 --instance-name MyFabric-1.20.1

Installer-Driven

installer · processor
Java 17

Installer profile parsing, processor pipeline execution, and module-path filtering.

  • Forge
  • NeoForge
  • CleanroomMC
  • Outlands
$ cargo run -p launchpad -- forge 1.20.1 47.3.1

Profiled Legacy

version_json · legacy
Java 8

Dedicated catalog and manifest adapters for classic tweak-class and profiled loaders.

  • Rift
  • LiteLoader
$ cargo run -p launchpad -- liteloader 1.12.2 1.12.2-SNAPSHOT
03 // MODULAR ARCHITECTURE

Modular by design. Enable only what you need.

Every capability is isolated into its own crate and gated behind explicit Cargo features. Turn off default-features to compile a minimal launcher stack—or adopt standalone foundation crates like persistence, object pools, and download sessions in any Rust app.

Opt-in auth & local testing features

OfflineAuthorizer, MicrosoftAuthorizer, andYggdrasilAuthorizer share one Authorizer contract. Enableyggdrasil-auth or offline-server only when your launcher needs them.

yggdrasil-authoffline-serverAccountStore

Pluggable storage & layout compatibility

Swap storage layouts via Storage<L> or keep default probing that preserves Elemental, Prism, PCL, and XMCL layouts without overwriting user-modified libraries.

Storage<L>--local-onlyDriverRegistration