rimloc-parsers-xml

Crates.iorimloc-parsers-xml
lib.rsrimloc-parsers-xml
version0.1.0
created_at2025-09-25 17:57:45.429139+00
updated_at2025-09-25 17:57:45.429139+00
descriptionXML ingestion and parsing for RimWorld localization data (RimLoc)
homepage
repositoryhttps://github.com/0-danielviktorovich-0/RimLoc
max_upload_size
id1854922
size25,564
Daniel Viktorovich (0-danielviktorovich-0)

documentation

https://0-danielviktorovich-0.github.io/RimLoc/

README

rimloc-parsers-xml

XML ingestion and parsing for RimWorld localization data (RimLoc).

Usage

[dependencies]
rimloc-parsers-xml = "0.1.0"

Scan Languages/*/Keyed/*.xml under a mod root:

use rimloc_parsers_xml::scan_keyed_xml;
use std::path::Path;

fn main() -> color_eyre::Result<()> {
    let units = scan_keyed_xml(Path::new("./Mods/MyMod"))?;
    for u in units.iter().take(5) {
        println!("{} => {:?}", u.key, u.source);
    }
    Ok(())
}

Links

Commit count: 167

cargo fmt