Building a CLI with Rust and the GitHub API is so easy!

preview_player
Показать описание
A real-world use case for Rust would be to interact with the GitHub API to retrieve all repository issues and their reactions and sort them based on upvotes. This is what we are going to build today!

📝 Description
In this tutorial, we will be diving into a real-world use case for Rust. We'll be interacting with the GitHub API to retrieve all repository issues and their reactions and sort them based on upvotes. This is what we are going to build today! These are only a few things you will learn in this video:
• Handling requests and response with reqwest
• Using tokio in combination with async await
• Applying recursion and pagination
• Using environment variables to hide secrets

🔗 Mentioned Links:

⏳ Timestamps:
00:00 - Introduction
01:00 - Problem
01:40 - Listing all repository issues
17:50 - Add recursion and pagination
29:21 - List all issue reactions
36:10 - Outro

👋 Hey there!
If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using emojis and paper-based animations (so have a look for that if you want to find my videos).

📨 Support and Connect!

#rust #cli #api #github
Рекомендации по теме
Комментарии
Автор

I will fix and refactor the code in the next episode of this mini-series.

FloWoelki
Автор

I love this channel, it's like having pair programming buddies to watch. it's awesome

apidas
Автор

Finally, some rust! :D Great idea to walk through a real API.

filipniklas
Автор

I love these kinda shorts on Rust. ❤‍🔥

Dru-ys
Автор

Extremely well explained process. I just struggle with the long chain of logic in the statements. Maybe rust is not for me. I'm more "procedural oriented". But great video.

noblenetdk
Автор

Awesome video as always. Also can you please share your zed configuration.

youknownothing_
Автор

Is there a specific reason why you handled the errors with .expect() and not with other more informative methods do get the error back or exit gracefully in some other way?
Great stuff!
Keep the Rust videos coming!!

mascanho
Автор

Can anyone build a Desktop Rest Client in rust? Postman is too heavy

sadiulhakim