31 releases
new 0.9.0 | Nov 19, 2024 |
---|---|
0.8.2 | Oct 30, 2024 |
0.6.18 | Nov 27, 2023 |
0.6.15 | Jun 14, 2023 |
0.4.1 | Feb 22, 2021 |
#97 in Geospatial
1,281 downloads per month
Used in opening-hours
64KB
1.5K
SLoC
Rust parser for OSM Opening Hours
Parsing component of opening-hours crate.
Usage
Add this to your Cargo.toml
:
[dependencies]
opening-hours-syntax = "0"
And then a basic usage would look like that:
use opening_hours_syntax::parse;
// Opens until 18pm during the week and until 12am the week-end.
const OH: &str = "Mo-Fr 10:00-18:00; Sa-Su 10:00-12:00";
fn main() {
let oh = parse(&OH).unwrap();
eprintln!("{:?}", oh);
}
"Root Package"
"Package"
"Documentation"
Dependencies
~4MB
~75K SLoC