Crate rust_flightweather

Source
Expand description

[deny(missing_docs)]

§METAR and TAF parsing library for Rust

§Quick usage

This example will print out the parsed data from a METAR:

use rust_flightweather::metar::Metar;

let metar = "EGHI 282120Z 19015KT 140V220 6000 RA SCT006 BKN009 16/14 Q1006";
let r = Metar::parse(metar).unwrap();
println!("{:#?}", r);

This example will print out the parsed data from a METAR:

use rust_flightweather::taf::Taf;

let taf = "TAF LUDO 130530Z 1307/1316 31015KT 8000 SHRA FEW005 FEW010CB SCT018 BKN025 TEMPO 1311/1316 4000 +SHRA PROB30 TEMPO 1314/1316 TSRA SCT005 BKN010CB";
let r = Taf::parse(taf).unwrap();
println!("{:#?}", r);

# Issues

METARs and TAFs are complicated structures.
If you come across a METAR or a TAF that doesn't parse
correctly, open an issue and include it in the issue.
This will aid in debugging the issue significantly.

Modules§

metar
Contains the METAR definition.
taf
Contains the TAF definition.