viva-genapi-xml
GenICam XML parser: loads device description files into a strongly-typed intermediate representation.
Parses GenICam XML node maps into XmlModel with typed declarations for all standard node types (Integer, Float, Enum, Boolean, Command, Category, SwissKnife, Converter, IntConverter, String).
Disclaimer -- Independent open-source Rust implementation of GenICam-related standards. Not affiliated with, endorsed by, or the reference implementation of EMVA GenICam. GenICam is a trademark of EMVA.
Features
- Full XML parsing -- parse GenICam XML into
XmlModelwith typedNodeDeclvariants - Minimal parsing --
parse_into_minimal_nodes()for quick feature enumeration - XML fetch -- download and decompress GenICam XML from a device (behind the
fetchfeature flag) - Serde support -- all public types derive
Serialize/Deserialize - WASM compatible -- compiles for
wasm32-unknown-unknown
Usage
[]
= "0.1"
use ;
let xml = read_to_string?;
let model: XmlModel = parse?;
println!;
Feature flags
| Flag | Default | Description |
|---|---|---|
fetch |
Yes | Enable fetch_and_load_xml() for downloading XML from devices |
Documentation
Part of the viva-genicam workspace.