Rust Workshop - New Relic Presented by Ardan Labs Requirements Rust installed via RustUp Git installed and working Basic Rust knowledge - variables, functions, control flow, etc. Outline Day 1 Introduction Rust Setup Ownership & Borrowing - Concepts Ownership & Borrowing - Sharing Data Understanding Traits Day 2 Concurrency & Parallelism System Threads Green Threads and Async Tokio Blocking Channels, and talking to Threads Build a Web Service in 20 Minutes High-Performance File Streaming and Processing Calling External Programs Day 3 Databases Dependency Injection and Shared State in Axum Services Error Handling Unit Testing Tracing Benchmarking Day 4 Best Practices: Tooling Formatting Clippy (the linter) Documentation Understanding Dependencies Managing Your Own Dependencies Checking for Vulnerabilities Check for Outdated Dependencies Denying Dependencies by License Build Profiles and Smaller Binaries Code Best Practices Favor Iterators Minimize Cloning Don't Emulate OOP Don't Reference Count Everything Favor Small Functions Clever Code Let the Type System Help You Floating Point Numbers Platform- and Feature- Specific Code General Best Practices TANSTAAFL: There Aint No Such Thing As A Free Lunch YAGNI: You Aint Gonna Need It Domain Boundaries and Network Calls Taming Compile Times QA Wrap-Up