Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcelbuesing/knx-xml

A rust crate for reading KNX project XML files
https://github.com/marcelbuesing/knx-xml

Last synced: about 1 month ago
JSON representation

A rust crate for reading KNX project XML files

Awesome Lists containing this project

README

        

# knx-xml

A rust crate for reading KNX project XML files generated by KNX vendors for their products.
Project files are usually available via the vendors websites and may need to be unpacked first.

```rust
use knx_xml::KNX;
use std::fs;
use yaserde::de::from_str;

fn main() {
let content = fs::read_to_string("knx_master.xml").expect("Failed to read knx_master.xml");
let knx_hardware: KNX = from_str(&content).unwrap();
println!("{:#?}", knx_hardware);
}
```