This library parses the meals from the Otto-von-Guericke University canteen website.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project.
First make sure you have the latest stable toolchain installed.
$ rustup update stable
Then check if stable is set as your default toolchain.
$ rustup toolchain list
If stable is not your default you can set it with
$ rustup default stable
To start development clone this repository on your local machine.
$ git clone git@github.com:fin-ger/rust-ovgu-canteen.git
$ cargo build
$ cargo test
To run this project issue the following command.
$ cargo run
In order to run an example from the example
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.
The project can be deployed to crates.io.
The following command will publish your local version of this project to crates.io.
$ cargo publish
This project is licensed under the GPL-v3 license - see the LICENSE.md file for details.