#ovgu #canteen #mensa

ovgu-canteen

A canteen parser library for the Otto-von-Guericke University Magdeburg

9 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

new 0.3.1 Feb 14, 2020
0.3.0 Feb 13, 2020
0.2.0 Feb 8, 2020
0.1.0 Feb 7, 2020
0.0.2 Apr 25, 2017

#98 in Parser tooling

Download history 5/week @ 2019-10-29 6/week @ 2019-11-05 6/week @ 2019-11-12 10/week @ 2019-11-19 10/week @ 2019-11-26 5/week @ 2019-12-03 77/week @ 2019-12-10 5/week @ 2019-12-24 1/week @ 2019-12-31 38/week @ 2020-01-07 30/week @ 2020-01-14 31/week @ 2020-02-04

75 downloads per month

GPL-3.0 license

46KB
671 lines

OVGU Canteen Information for Rust

crates.io Latest Tag Build Status Documentation Homepage Built with Spacemacs

This library parses the meals from the Studentenwerk Magdeburg canteen website.

Note: This library uses async/await. In order to work properly, the tokio runtime must be used. I'm sorry but async-std wont work 😢

Usage

Put this in your Cargo.toml:

[dependencies]
ovgu_canteen = "^0"

How to Run the Examples

In order to run an example from the examples folder issue the following command.

$ cargo run --example <name>

To get the canteen information in a json format you can use this example:

$ cargo run --example json | jq -r '.[0].days[0].meals[0].price.student'

jq is a json querying software available via your distributions package manager.

License

This project is licensed under the GPL-v3 license - see the LICENSE file for details.

Dependencies

~9.5MB
~181K SLoC