Rust crates: dotenv, reqwest, url, serde, serde-json (Twitch live stream 2023-02-08)

Subscribers:
950
Published on ● Video Link: https://www.youtube.com/watch?v=rqUH1Dnz8Ho



Duration: 1:01:33
229 views
10


In this video, we explored some interesting crates that can be useful when building web projects or integration software with the Rust programming language:

- Dotenv (to load environment variables from .env files): https://crates.io/crates/dotenv
- Reqwest (an async HTTP client): https://crates.io/crates/reqwest
- Url (to parse and build URLs programmatically): https://crates.io/crates/url
- Serde & Serde JSON (to parse JSON data): https://serde.rs/


The code is available here: https://github.com/lmammino/rust-lastfm

Chapters:

00:00:00 Intro
00:01:00 What is Last.fm
00:02:31 Looking at the Last.fm APIs
00:04:38 Using the dotenv crate to load .env files
00:09:38 Using the request crate to do HTTP calls
00:17:00 Parse the HTTP response as JSON with serde_json (part 1)
00:20:18 Is it worth learning Rust for a Node.js dev? (question from chat)
00:22:09 Parse the HTTP response as JSON with serde_json (part 2)
00:25:40 Building URLs programmatically with the url crate
00:34:19 Parsing the response from last.fm with serde_json
00:45:50 Debugging and fixing a deserialization error
00:57:05 Testing our deserialized types
00:58:00 Ideas for next sessions, summary, and wrap up

Huge thanks to WGaffa for all the help given during this stream :)

To see the next episodes live check out our Twitch channel: https://twitch.tv/loige
Chat with me on Twitter at https://twitter.com/loige

#rust #crates #webdevelopment




Other Videos By Luciano Mammino (loige)


2023-06-26Fixing Fullstackbulletin.com part 3 - Twitch Live Stream
2023-06-19Fixing Fullstackbulletin.com part 2 - Twitch Live Stream
2023-06-12Fixing Fullstackbulletin.com part 1 - Twitch Live Stream
2023-05-08Creating Node.js libraries with Rust using Neon (Twitch live stream)
2023-04-18Using Zig from Python 😱 (Twitch Live Stream)
2023-04-03🦀 Calling Rust from Python 🐍 with PyO3 (Twitch live stream)
2023-03-22🦀 Exploring Rust crates zip & image (Twitch live stream)
2023-02-27🦀 Learning Rust web servers with Axum & SQLx (Twitch live stream)
2023-02-21Rust crates: async_stream (Twitch live stream 2023-02-20)
2023-02-13Rust crates: custom serde deserializers (Twitch live stream 2023-02-13)
2023-02-09Rust crates: dotenv, reqwest, url, serde, serde-json (Twitch live stream 2023-02-08)
2023-01-23🦀 Learning Rust web servers with Axum (Twitch live stream)
2023-01-09🦀 Learning nom, a Rust parser combinator library (Twitch stream)
2022-11-30Building a Tic Tac Toe game in Solid.js (Twitch Live Stream 2022-11-30)
2022-11-28🦀 Building a 2D starship game in Rust with Bevy - PART 5 (asteroids)
2022-11-21🦀 Building a 2D starship game in Rust with Bevy - PART 4 (collisions)
2022-11-14🦀 Building a 2D starship game in Rust with Bevy - PART 3 (migrating to Bevy 0.9)
2022-11-10🦀 Building a 2D starship game in Rust with Bevy - PART 2
2022-11-07🦀 Building a 2D starship game in Rust with Bevy - PART 1
2022-11-02Introduction to Bevy, Rust game engine (Twitch Live 2022-11-02)
2022-10-10🦀 Rust vs 🐍 Python: Advent of code in Rust - solving days 24 & 25/2021 (Twitch Live 2022-10-10)



Tags:
rust
rustlang
apis
integration
reqwest
crate
url
dotenv
http
lastfm
last.fm
last fm
tokio
json
deserialize
serialize
async
live coding
live
twitch
coding
side project
env
serde
serde json
serde-json
serde_json