wh40kdc
Rust types for the 40kdc-data Warhammer 40K schema layer — the canonical community schema for 40K game entities.
Every type is generated from the project's JSON Schemas (JSON Schema draft 2020-12)
via typify, so the Rust structs stay in lockstep
with the schemas that other consortium tools validate against.
Usage
[]
= { = "https://github.com/Tabletop-Developer-Consortium/40kdc-data" }
= "1"
use ;
let units: = from_str?;
let weapons: = from_str?;
The bundled schema is available as a string for downstream validation:
let schema: Value = from_str?;
Regenerating
Types are checked in (src/generated.rs). To regenerate after a schema change:
&&
CI fails if the committed artifacts drift from the schemas.
Licensing
The crate code is MIT. The schema content these types describe is CC0 (public domain).