8 releases
Uses old Rust 2015
0.4.0 | Mar 18, 2017 |
---|---|
0.2.4 | Jun 14, 2016 |
0.2.2 | Mar 20, 2016 |
0.1.2 | Mar 20, 2016 |
#21 in #comment
30 downloads per month
12KB
222 lines
ukhasnet-parser
A parser for the UKHASnet protocol written in Rust.
See the examples
directory for further usage, or simply:
extern crate ukhasnet_parser;
use ukhasnet_parser::{parse};
pub fn main() {
let s = "2bT12,15H38:test[AG]".to_owned();
match parse(&s) {
Ok(p) => println!("{:?}", p),
Err(e) => println!("{}", e),
}
}
$ cargo run --example simple
Packet { repeat: 2, sequence: 'b', data: [Temperature([12, 15]), Humidity([38])], comment: Some("test"), path: ["AG"] }
Dependencies
~1.5MB
~27K SLoC