Rust
38 posts
Rust mmap Memory-Mapped I/O: Why Reading Files Can Be as Fast as Accessing Memory
A plain-English guide to Rust mmap memory-mapped I/O. Why is it 5-10x faster than traditional Rust file reading? How does zero-copy achieve Rust performance optimization? This memmap2 hands-on tutorial uses real-life analogies to help you understand this seemingly mysterious low-level technology.

Rust 1.90 Upgrade Crash Report: My Codebase Didn't Make It
Performance tanked after upgrading to Rust 1.90? Here’s why and how to claw it back.
Running Rust Async on Windows? Meet the Little Devil in the Closet: Device Afd
Why does Rust async work on Windows? Unveiling Microsoft’s undocumented AFD driver with real-world analogies to understand Windows async programming under the hood

Rust Macros 2.0 Starter Guide: Build Code Like Lego
A panoramic Rust Macros 2.0 guide: unify macro namespaces, master the TokenStream pipeline and macro hygiene, and migrate from macro 1.0 to macro 2.0 metaprogramming with practical examples.

Rust 1.90: The Update Developers Have Been Begging For
If Rust build times have ever ruined your coding flow, this release fixes what matters most

Rust Async Microservices, Tamed: Rate Limiting, Backpressure, Batching, and Middleware
When traffic surges like a flood, equip your Rust microservices with four gates—rate limiting, backpressure, batching, and middleware—using Tokio + Tower. Keep P99 steady and make speed happen in order.
Rust + Axum Async Microservice Guide: Job Queue, Retries, and Graceful Shutdown
Build a production-ready async microservice with Rust and Axum: job queue, background workers, exponential backoff retries, and graceful shutdown. Includes full project structure and Docker example.

Rust Axum Graceful Shutdown, The Ultimate Guide: Fix the pitfall 99% of engineers hit
Master graceful shutdown for Rust Axum services: listen for SIGINT/SIGTERM, refuse new connections with with_graceful_shutdown, stop background tasks via CancellationToken, set timeouts, and integrate with Docker/Kubernetes termination — protect data integrity and user experience.

Rust + Axum, from zero to hero: build a high‑performance Web server the LEGO way
A step‑by‑step Axum guide to build a modern high‑performance Web service: routing, path and query parameters, JSON, shared state, and middleware (tracing, CORS) with complete code samples and best practices.
Rust unsafe isn’t a toy — it’s a blood oath: 6 YOLO mistakes that will blow up your code
Don’t treat unsafe like a get-out-of-jail-free card. With practical examples, this article dissects 6 common unsafe pitfalls: silencing the compiler with duct tape, dereferencing random raw pointers, violating borrow rules inside unsafe, reinventing wheels, abusing unsafe impl, and skipping Safety comments — helping you build the right risk mindset and usage patterns.