elemental-schema
Serde data models for Minecraft launcher and modloader metadata.
elemental-schema is the shared JSON layer used by Elemental. It mirrors the
manifests published by Mojang, Fabric, Quilt, and Forge-family tooling. The
crate performs no network or filesystem access, so it can parse cached
metadata in any Rust application without pulling in the launcher runtime.
Features
- Mojang launcher version manifests.
- Piston version metadata, arguments, rules, libraries, and asset indexes.
- Fabric and Quilt loader metadata and launcher profiles.
- Forge installer profiles and Maven metadata.
SerializeandDeserializeimplementations for every public model.- Optional and defaulted fields that tolerate normal upstream schema drift.
Installation
[]
= "1"
= "0.3"
= "1"
Quick Start
Parse a Mojang version manifest and read the latest release:
use Result;
use LaunchMetaData;
Read the Java requirement from a Piston version document:
use Result;
use PistonMetaData;
Modules
| Module | Contents |
|---|---|
mojang::launcher |
version_manifest_v2.json models |
mojang::piston |
Version metadata, arguments, rules, libraries, downloads, logging, and asset indexes |
fabric |
Fabric game versions, loader versions, and launcher profiles |
quilt |
Quilt game versions, loader versions, and launcher profiles |
forge |
Installer profiles, installer processors, and Maven metadata |
Quilt profile types reuse the Fabric profile library types because the two launcher formats share the same library and logging shapes.
Schema Notes
The models keep upstream names through #[serde(rename = "...")]. Fields that
are absent in older or newer manifests use Option or #[serde(default)] where
the launcher can continue without them.
Mojang version manifest timestamps are represented as jiff::Timestamp.
Installers, loader metadata, and version documents are available as owned
types that can be persisted or transformed without retaining the source JSON.
Related Crates
- elemental-core combines these models with storage, runtime discovery, authentication, and process launch primitives.
- elemental-driver fetches manifests and turns them into installable, launchable driver metadata.
- elemental-kit
re-exports this crate behind the
schemafeature.