Description
Anitrendz is a cli app that uses data from the anitiop api to list the top anime and songs or recommend a random anime to watch or song to listen to.
I made this project to strengthen my knowledge on rust and learn how to handle JSON data
💻
Tech stack This is a rust project and I am using the following crates.
- clap for parsing command line arguments.
- serde for serializing and deserializing the JSON data.
- reqwest for making HTTP requests to the anitop api.
📝
Source data For the data, i used the anitop api
What I learned?
- fetching data using reqwest and consuming api's in rust.
- using serde.js to deserialize and serialize json data.
- How to format custom types and display them using Display.
- ANSI escape codes and especially Select Graphics Rendition(SGR) for the colored output
- making a command line app using clap.rs
Project setup
Download the binary package from the releases page.
Jimmy ©2021