aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add more metadata to Cargo.toml before publishing.HEADmasterHarald Eilertsen2019-02-241-0/+6
|
* No need for static lifetime in const, thanks clippy.Harald Eilertsen2019-02-241-1/+1
|
* Handle the case where there's no availability data for a given station.Harald Eilertsen2019-02-241-7/+14
|
* Let errors propagate out of main too.Harald Eilertsen2019-02-242-6/+31
| | | | | Makes error messages from the program slightly nicer, but still a bit cryptic for the casual user.
* Ass a readme.Harald Eilertsen2019-02-231-0/+53
|
* Propagate errors from the server back up through the Api.Harald Eilertsen2019-02-231-8/+12
| | | | | Also create a small helper method to fetch the payload from the server, to avoid too much repitition.
* Add api to fetch availability data as well.Harald Eilertsen2019-02-234-3/+42
|
* Add a tiny bit of documentation.Harald Eilertsen2019-02-231-0/+8
|
* Propagate errors from api calls to caller.Harald Eilertsen2019-02-234-14/+72
| | | | | | | | | This defines an ApiResult type, and a corresponding Error type which wraps any errors that can be returned from underlying libs. Prevents panics due to unwraps in the core api. The main app still unwraps, and will panic on any error, though. Fix that later.
* Deserialize stations json data into native rust struct.Harald Eilertsen2019-02-234-4/+49
|
* Add dependencies serde and serde_json for deserializing json data.Harald Eilertsen2019-02-232-0/+17
|
* Move Api to api module.Harald Eilertsen2019-02-232-30/+50
|
* Drop api_key from Api, not really needed.Harald Eilertsen2019-02-231-2/+1
|
* Fetch stations, dump response json to stdout.Harald Eilertsen2019-02-231-3/+22
|
* Initial commit, basic app skeleton.Harald Eilertsen2019-02-236-0/+2106