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

Download history 28/week @ 2024-07-30 40/week @ 2024-08-06 30/week @ 2024-08-13 40/week @ 2024-08-20 80/week @ 2024-08-27 61/week @ 2024-09-03 144/week @ 2024-09-10 122/week @ 2024-09-17 128/week @ 2024-09-24 171/week @ 2024-10-01 139/week @ 2024-10-08 81/week @ 2024-10-15 180/week @ 2024-10-22 583/week @ 2024-10-29 181/week @ 2024-11-05 304/week @ 2024-11-12

1,281 downloads per month
Used in opening-hours

MIT/Apache

64KB
1.5K SLoC

Rust 1.5K SLoC // 0.0% comments Pest 184 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
~75K SLoC