This Rust library provides a parser for extracting structured data from Path of Exile (PoE) Item Text descriptions, typically copied directly from the game with Ctrl + C (or Ctrl + Alt + C wich also includes modifier types, tags & names).
It currently (hopefully) supports every equipable item. Maps, Tattoos, Idols etc. will be added later.
use poe_item_parser::PoeItem;
fn main() {
let item_text = r#"Item Class: Belts
Rarity: Magic
Rustic Sash of the Whelpling
--------
Item Level: 14
--------
14% increased Global Physical Damage (implicit)
--------
+8% to Fire Resistance
"#;
match PoeItem::parse(item_text) {
Ok(item) => {
println!("{:#?}", item);
}
Err(e) => {
eprintln!("Error parsing item: {}", e);
}
}
}