Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add more metadata to Cargo.toml before publishing.HEADmaster | Harald Eilertsen | 2019-02-24 | 1 | -0/+6 |
| | |||||
* | No need for static lifetime in const, thanks clippy. | Harald Eilertsen | 2019-02-24 | 1 | -1/+1 |
| | |||||
* | Handle the case where there's no availability data for a given station. | Harald Eilertsen | 2019-02-24 | 1 | -7/+14 |
| | |||||
* | Let errors propagate out of main too. | Harald Eilertsen | 2019-02-24 | 2 | -6/+31 |
| | | | | | Makes error messages from the program slightly nicer, but still a bit cryptic for the casual user. | ||||
* | Ass a readme. | Harald Eilertsen | 2019-02-23 | 1 | -0/+53 |
| | |||||
* | Propagate errors from the server back up through the Api. | Harald Eilertsen | 2019-02-23 | 1 | -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 Eilertsen | 2019-02-23 | 4 | -3/+42 |
| | |||||
* | Add a tiny bit of documentation. | Harald Eilertsen | 2019-02-23 | 1 | -0/+8 |
| | |||||
* | Propagate errors from api calls to caller. | Harald Eilertsen | 2019-02-23 | 4 | -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 Eilertsen | 2019-02-23 | 4 | -4/+49 |
| | |||||
* | Add dependencies serde and serde_json for deserializing json data. | Harald Eilertsen | 2019-02-23 | 2 | -0/+17 |
| | |||||
* | Move Api to api module. | Harald Eilertsen | 2019-02-23 | 2 | -30/+50 |
| | |||||
* | Drop api_key from Api, not really needed. | Harald Eilertsen | 2019-02-23 | 1 | -2/+1 |
| | |||||
* | Fetch stations, dump response json to stdout. | Harald Eilertsen | 2019-02-23 | 1 | -3/+22 |
| | |||||
* | Initial commit, basic app skeleton. | Harald Eilertsen | 2019-02-23 | 6 | -0/+2106 |