aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/zot/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add ZotAPI trait and derive macro.Harald Eilertsen2023-03-271-0/+1
| | | | | | | | | The idea is to try to generate more of the boilerplate code, but for now we only do the `z()` method definition. There are also some we're not quite able to replace yet (like XChanRequest) since it also has life times. It's a start anyways :)
* Implement "verify" API.HEADmasterHarald Eilertsen2023-03-261-0/+21
| | | | | | | The verify API call returns a full channel object, including the corresponding xchan. I've added the xchan as a field in the Channel object, instead of having all the fields in one object like it is returned from the API.
* Make abook output prettier.Harald Eilertsen2023-03-261-1/+3
| | | | | | Only print the most relevant information from the returned data. Output it as CSV (but we don't do any sort of escaping yet). This will probably not stay this way, but works as a demonstration for now.
* Fetch abook and xchan directly from api.Harald Eilertsen2023-03-261-8/+19
| | | | We don't really need the intermediate layer in the binary module.
* Update reqwest and make async.Harald Eilertsen2021-07-051-8/+11
| | | | | | | | This means adding the full tokio as a dependency. While there isn't much gain to going async in the current cli demo app, a full fledged app may have more to gain by it. First foray into async rust, so I might not do it right...
* Promote example app to proper command line client.Your Name2020-05-031-0/+147