| Crates.io | rimloc-parsers-xml |
| lib.rs | rimloc-parsers-xml |
| version | 0.1.0 |
| created_at | 2025-09-25 17:57:45.429139+00 |
| updated_at | 2025-09-25 17:57:45.429139+00 |
| description | XML ingestion and parsing for RimWorld localization data (RimLoc) |
| homepage | |
| repository | https://github.com/0-danielviktorovich-0/RimLoc |
| max_upload_size | |
| id | 1854922 |
| size | 25,564 |
XML ingestion and parsing for RimWorld localization data (RimLoc).
[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(())
}