How to Build CLIs in Rust with StructOpt
Learn the basics of StructOpt and build tailored Command Line Interfaces (CLIs) in Rust.
Rust is a systems programming language that focuses on safety, speed, and concurrency. I've been using Rust extensively for WebAssembly development and systems programming. These posts document my Rust learning journey, from basic concepts to advanced patterns, with a focus on practical applications.
Learn the basics of StructOpt and build tailored Command Line Interfaces (CLIs) in Rust.
Call HTTP APIs in Rust with reqwest 0.13: reuse one async Client, send and parse JSON with serde, add headers and auth, set timeouts and handle errors.
Shadowing and temporary mutability are small language fundamentals that make your code more robust and correct. They also make learning Rust fun.
Read env vars with std::env, set them safely now that set_var is unsafe in Rust 2024, load .env files with dotenvy and map them into a config struct.