aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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-241-6/+11
| | | | | Makes error messages from the program slightly nicer, but still a bit cryptic for the casual user.
* Add api to fetch availability data as well.Harald Eilertsen2019-02-231-1/+7
|
* Propagate errors from api calls to caller.Harald Eilertsen2019-02-231-2/+2
| | | | | | | | | 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-231-1/+6
|
* Initial commit, basic app skeleton.Harald Eilertsen2019-02-231-0/+26