29 releases

new 0.8.2 Oct 30, 2024
0.7.0 Oct 28, 2024
0.6.18 Nov 27, 2023
0.6.15 Jun 14, 2023
0.4.1 Feb 22, 2021

#96 in Geospatial

Download history 37/week @ 2024-07-15 25/week @ 2024-07-22 27/week @ 2024-07-29 38/week @ 2024-08-05 32/week @ 2024-08-12 40/week @ 2024-08-19 63/week @ 2024-08-26 53/week @ 2024-09-02 136/week @ 2024-09-09 137/week @ 2024-09-16 111/week @ 2024-09-23 186/week @ 2024-09-30 141/week @ 2024-10-07 69/week @ 2024-10-14 98/week @ 2024-10-21 688/week @ 2024-10-28

1,002 downloads per month
Used in opening-hours

MIT/Apache

59KB
1.5K SLoC

Rust 1.5K SLoC // 0.0% comments Pest 183 SLoC // 0.1% comments

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
~76K SLoC