Loading video player...
We'll cover the Rust programming language from a web developer's background. First, some general notes then rewriting a Python app in Rust. ## Audio Tracks 1. "English (US) original" with music 2. "English (GB)" without music ## Timestamps 00:00:00 Opener 00:00:10 Intro 00:00:20 Merica 00:00:36 Why Rust 00:01:39 Rust vs C++ 00:04:46 Rust Whiteboard 00:07:22 Modules 00:09:50 Typesystem 00:12:20 Collections 00:13:05 Strings 00:14:30 Enums 00:15:06 Option 00:15:52 Result 00:16:56 Error 00:17:14 Shortcuts / Sugar 00:18:35 Structs 00:19:36 References 00:20:25 Generics 00:20:48 Async 00:21:16 Tips 00:22:59 Closing Thoughts 00:24:03 Coding Project Setup 00:25:22 Rust, More Like Dust 00:25:34 VS Code Settings 00:26:44 Basic Dependencies 00:27:55 Bacon 00:28:50 Hello World 00:29:21 Axum Basic Webserver 00:30:37 Main Result 00:32:28 Hello Server 00:33:04 CLAP Config Command Line Args 00:38:05 Shutdown Handler 00:40:13 Utoipa API Docs Generation 00:43:34 VS Code Clippy 00:44:07 Askama Templates and Error Handling 00:54:02 DB SeaORM Data Models 01:00:40 SeaORM / Utoipa Gotcha 01:10:42 DB Migration and Seeding 01:15:28 DB Diagram (ERD) 01:16:25 App Setup / Controllers / Logic 01:23:12 App Schemas API Docs 01:25:09 Next Time... ## Music Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com Smith The Mister https://bit.ly/Smith-The-Mister-YT Free Download / Stream: https://www.audiolibrary.com.co/smith-the-mister/mitsubachi Music promoted by Audio Library https://youtu.be/0IgndUb1YQI ## Clips Attribution ### Opener: Top Gear (Series 21, Ep. 3) - BBC ## Resources ### Code - https://github.com/matthewhaynesonline/ai-for-web-devs ### AI and ML for Web Devs video series - https://youtube.com/playlist?list=PLwPYSl1MQp4FpIzn48ypesKYzLvUBQpPF&si=CvOWb9LmPnWxgJnn ### Rust video series - https://www.youtube.com/playlist?list=PLwPYSl1MQp4EIM5A8qHBm9jUCI88Z7UGv ### Rust install - https://www.rust-lang.org/tools/install ### Rust book - https://doc.rust-lang.org/book/ ### Homebrew install issue - https://github.com/PyO3/maturin/pull/2605 ### VS Code Rust - https://code.visualstudio.com/docs/languages/rust ### Rust modules graphic - https://www.reddit.com/r/rust/comments/ujry0b/media_how_to_create_a_module_hierarchy_in_rust/ ### Lifetimes - https://www.reddit.com/r/rust/comments/1ck2716/comment/l2kdij3/ ### Anyhow and thiserror crates - https://crates.io/crates/anyhow - https://crates.io/crates/thiserror ### Send / sync - https://www.reddit.com/r/rust/comments/1mkjs6o/my_take_on_send_and_sync/ ### Green threads / fibers - https://www.reddit.com/r/rust/comments/iyub8b/why_green_threads_were_removed_by_rust/ ### Rust tips - https://www.reddit.com/r/rust/comments/1m8wvm7/comment/n52u4zr/ ### Make it work - https://wiki.c2.com/?MakeItWorkMakeItRightMakeItFast Have questions or feedback? Leave a comment below.