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

Used Rust
Published a YouTube video
Hosted a live stream on Twitch
+1

https://youtu.be/rqUH1Dnz8Ho


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