Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marcelbuesing/knx-xml
- Owner: marcelbuesing
- License: mit
- Created: 2024-02-06T21:33:40.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-02-09T20:25:48.000Z (9 months ago)
- Last Synced: 2024-04-23T14:29:19.620Z (7 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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);
}
```