<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Rust on 梦兽编程</title><link>https://rexai.top/en/languages/rust/</link><description>Recent content in Rust on 梦兽编程</description><generator>Hugo -- 0.163.3</generator><language>en</language><copyright>梦兽编程</copyright><lastBuildDate>Thu, 02 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://rexai.top/en/languages/rust/index.xml" rel="self" type="application/rss+xml"/><item><title>Building AI Agents in Rust (Part 3): Refactoring Tools into a Skill Registry with Traits</title><link>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-3/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-3/</guid><description>Part 3 replaces the Part 1 match dispatcher with a Rust trait system: Skill, Registry, DynSkill, schemars-generated JSON Schema, parallel calls, error classification, retries, hooks, and permission gates.</description></item><item><title>Building AI Agents in Rust (Part 4): State Machines for Multi-Step Tasks</title><link>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-4/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-4/</guid><description>Part 4 introduces state machines for multi-step tasks: Node trait, Graph runner, SQLite checkpointing, Interrupt suspend/resume, PermissionMode gates, and NodeHook cross-cutting logic.</description></item><item><title>Building AI Agents in Rust (Part 5): Multi-Agent Crews</title><link>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-5/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-5/</guid><description>Part 5 covers multi-agent collaboration: when to add agents and when not to. The Agent trait, Crew parallel/sequential dispatch, Router, debate protocol, and composing with Part 3&amp;#39;s skill registry and Part 4&amp;#39;s state machine.</description></item><item><title>Building AI Agents in Rust — Part 2: Structured Prompt Architecture and the Cache Boundary</title><link>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-2/</link><pubDate>Wed, 01 Jul 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-07-01-building-ai-agents-in-rust-part-2/</guid><description>Following Part 1&amp;#39;s tool-calling loop, Part 2 dives into Agent system prompt architecture: Identity, Instructions, Output, Examples, and Context layers, plus Anthropic Prompt Caching and prompt fingerprinting for regression testing.</description></item><item><title>Rust + AWS Lambda: Secure Credential-Free Access with Workload Credentials</title><link>https://rexai.top/en/languages/rust/2026-06-28-rust-aws-lambda-workload-credentials/</link><pubDate>Sun, 28 Jun 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-06-28-rust-aws-lambda-workload-credentials/</guid><description>How Rust Lambdas automatically obtain temporary credentials via IAM roles — from IAM role creation, Rust code implementation to cargo-lambda deployment, a hands-on walkthrough of the AWS Workload Credentials Provider workflow.</description></item><item><title>Building AI Agents in Rust — The Tool-Calling Loop Explained</title><link>https://rexai.top/en/languages/rust/2026-06-22-building-ai-agents-in-rust-part-1/</link><pubDate>Mon, 22 Jun 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-06-22-building-ai-agents-in-rust-part-1/</guid><description>A deep dive into the core mechanism of AI agents: the tool-calling loop. Through a ~200-line Rust implementation, we break down how models gain the ability to act via tool use, and why the architecture behind Claude Code and GitHub Copilot is the same fundamental loop.</description></item><item><title>Rust-Written Lua Compiler Runs Scripts Natively on Bare-Metal Arduino</title><link>https://rexai.top/en/languages/rust/2026-06-06-lua-zero-vm-compiler-rust/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-06-06-lua-zero-vm-compiler-rust/</guid><description>TinyLua: a zero-VM Lua native compiler written in Rust. Compiles Lua source directly to AVR/ARM machine code for Arduino bare-metal — no interpreter, no GC, no runtime. Scripting language performance at C level.</description></item><item><title>Rust Smart Pointers Complete Guide: Box, Rc, and RefCell Explained with Code Examples</title><link>https://rexai.top/en/languages/rust/2026-05-17-rust-smart-pointers-beginner/</link><pubDate>Sun, 17 May 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-05-17-rust-smart-pointers-beginner/</guid><description>Master Rust smart pointers: Box, Rc, RefCell, and the powerful Rc&amp;lt;RefCell&amp;lt;T&amp;gt;&amp;gt; combo. Learn heap allocation, reference counting, and interior mutability through vivid analogies. Beginner to intermediate level.</description></item><item><title>tokio::select! Finally Gets rustfmt Support: A Hands-On Look at better_tokio_select</title><link>https://rexai.top/en/languages/rust/2026-05-01-better-tokio-select-rustfmt-friendly/</link><pubDate>Fri, 01 May 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-05-01-better-tokio-select-rustfmt-friendly/</guid><description>The tokio::select! macro has always been a blind spot for rustfmt. better_tokio_select uses match syntax to fix this, so your async Rust code can finally be auto-formatted.</description></item><item><title>Why a Pure-Rust HTML-to-PDF Engine Could Be a Bigger Deal Than Most Developers Realize</title><link>https://rexai.top/en/languages/rust/2026-04-25-pure-rust-html-to-pdf-engine/</link><pubDate>Sat, 25 Apr 2026 08:00:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/2026-04-25-pure-rust-html-to-pdf-engine/</guid><description>Still using headless Chromium for PDF generation? That might change soon. A lightweight Rust library is redefining document rendering boundaries—it runs on the edge, compiles to WASM, and needs no browser.</description></item><item><title>Rust is Taking Over GPU Programming: 239K Lines Replacing the Entire CUDA Ecosystem</title><link>https://rexai.top/en/languages/rust/2026-04-21-oxicuda-pure-rust-cuda-stack/</link><pubDate>Tue, 21 Apr 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-04-21-oxicuda-pure-rust-cuda-stack/</guid><description>Oxide Computer released OxiCUDA, a pure Rust implementation of the complete NVIDIA CUDA software stack. 239K lines of safe Rust code, 28 crates, zero C toolchain. This is production-ready code, not a proof of concept.</description></item><item><title>Rust's #[must_use]: Making Sure Your Return Values Can't Be Ignored</title><link>https://rexai.top/en/languages/rust/rust-must-use-attribute/</link><pubDate>Sun, 22 Mar 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-must-use-attribute/</guid><description>Rust #[must_use] attribute explained: put it on structs, functions, or traits to force callers to handle critical return values. Compile-time warnings prevent transactions and payments from being silently dropped.</description></item><item><title>Rust 10x Faster Than Spring? I Ran the Benchmarks. The Truth Is More Complicated.</title><link>https://rexai.top/en/languages/rust/2026-03-21-rust-spring-quarkus-performance/</link><pubDate>Sat, 21 Mar 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-03-21-rust-spring-quarkus-performance/</guid><description>Behind the benchmark numbers are three competing models: GC pauses, JIT warmup, and AOT compilation. Here&amp;#39;s the data-driven breakdown of when to use Rust versus when Quarkus Native Image is the smarter choice.</description></item><item><title>Rust 1.94 is Here: Sliding Window Pattern Matching Makes Code Elegant</title><link>https://rexai.top/en/languages/rust/2026-03-16-rust-194-sliding-windows/</link><pubDate>Mon, 16 Mar 2026 10:00:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/2026-03-16-rust-194-sliding-windows/</guid><description>Rust 1.94 brings three major updates: sliding windows destructured into named variables, Cargo.toml now supports multi-line syntax, and the Golden Ratio finally joins after 10 years!</description></item><item><title>From 1GB to 40MB: How Rust Cracks Memory Management</title><link>https://rexai.top/en/languages/rust/2026-03-15-rust-memory-ownership-explained/</link><pubDate>Sun, 15 Mar 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-03-15-rust-memory-ownership-explained/</guid><description>Same microservice, same endpoints, but memory usage dropped from 1GB to 40MB after rewriting Node.js to Rust. That&amp;#39;s 25x less memory. How does Rust pull this off? Let&amp;#39;s talk about ownership.</description></item><item><title>We Compared 6 Outage Reports Before We Understood What Async Rust Actually Prevents</title><link>https://rexai.top/en/languages/rust/2026-02-16-rust-async-outage-reports/</link><pubDate>Mon, 16 Feb 2026 14:30:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/2026-02-16-rust-async-outage-reports/</guid><description>CPU was fine, memory was stable, no recent deploys — but error rates hit 3.4%. After comparing 6 outage reports across Node.js, Go, and Java, we finally understood how async systems actually fail, and where Rust+Tokio&amp;#39;s compiler draws the line.</description></item><item><title>Don't Underestimate Rust Enums: A Complete Hands-On Guide</title><link>https://rexai.top/en/languages/rust/rust-enum-complete-guide/</link><pubDate>Sun, 15 Feb 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-enum-complete-guide/</guid><description>Rust enums are far more than a set of constants. They carry data, drive state machines, replace null, and unify error handling. This guide walks you from basics to recursive enums with real code examples.</description></item><item><title>500 Lines of Rust, 10 Seconds to Train: How Simple Is Building a Neural Network from Scratch?</title><link>https://rexai.top/en/languages/rust/rust-neural-network-500-lines-candle/</link><pubDate>Sat, 07 Feb 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-neural-network-500-lines-candle/</guid><description>Build a spam classifier neural network with Rust and Hugging Face&amp;#39;s Candle framework in just 500 lines of code. From tokenizer to embedding to Softmax, every step explained like a cooking recipe. No GPU, no Python, runs on any laptop.</description></item><item><title>4000 Pages Per Second: The Rust PDF Library That's Changing the Game</title><link>https://rexai.top/en/languages/rust/2026-02-04-oxidize-pdf-rust-4k-pages/</link><pubDate>Wed, 04 Feb 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-02-04-oxidize-pdf-rust-4k-pages/</guid><description>oxidize-pdf: A pure-Rust PDF engine with zero C dependencies, a 5MB binary, and performance that leaves Chromium and Java stacks in the dust.</description></item><item><title>Brave Browser Rewrites Ad Blocker in Rust, Slashes Memory by 75%</title><link>https://rexai.top/en/languages/rust/brave-rust-adblock-memory-optimization/</link><pubDate>Fri, 30 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/brave-rust-adblock-memory-optimization/</guid><description>Brave 1.85 rewrites its ad-blocking engine using Rust and FlatBuffers, reducing memory usage from 60MB to 15MB. Here&amp;#39;s how they did it.</description></item><item><title>Stop Writing Some(...): The impl Into&lt;Option&lt;T&gt;&gt; Trick in Rust</title><link>https://rexai.top/en/languages/rust/rust-into-option-trick/</link><pubDate>Thu, 29 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-into-option-trick/</guid><description>Learn how to use Rust&amp;#39;s Into Trait with Option to let functions accept both raw values and Option types, eliminating tedious Some() wrapping.</description></item><item><title>Rust 1.93 Released: musl Upgrade, Assembly Conditional Compilation, Zero-Copy Suite</title><link>https://rexai.top/en/languages/rust/rust-1-93-musl-inline-asm-zero-copy/</link><pubDate>Wed, 28 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-1-93-musl-inline-asm-zero-copy/</guid><description>Rust 1.93 is out with all musl targets upgraded to 1.2.5, #[cfg] conditional compilation in assembly, global allocators can now use TLS, and zero-copy APIs stabilized.</description></item><item><title>Homebrew Too Slow? Try This Rust Version, 20x Faster</title><link>https://rexai.top/en/languages/rust/zerobrew-homebrew-rust-alternative/</link><pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/zerobrew-homebrew-rust-alternative/</guid><description>ZeroBrew is a Rust-based Homebrew alternative that installs packages lightning fast. Let&amp;#39;s talk about why it&amp;#39;s so fast and how to safely try it out.</description></item><item><title>Rust GCC Compiler Backend: Install rustc-codegen-gcc with One Command</title><link>https://rexai.top/en/languages/rust/rust-gcc-backend-rustup/</link><pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-gcc-backend-rustup/</guid><description>rustc-codegen-gcc is now officially part of rustup nightly components. Linux users can now experience GCC-compiled Rust code with a single command. No more manual compilation, no more environment setup hassles—it&amp;#39;s like giving Rust a new engine.</description></item><item><title>Rust's Standard Library Now Runs on GPUs: What Did They Actually Do</title><link>https://rexai.top/en/languages/rust/rust-std-gpu/</link><pubDate>Thu, 22 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-std-gpu/</guid><description>VectorWare team made Rust&amp;#39;s std library work on GPUs. You can now use println!, read files, and get system time inside GPU kernels. Here&amp;#39;s how they pulled it off.</description></item><item><title>The Truth About Rust Cold Starts on AWS Lambda: Those Scary Numbers</title><link>https://rexai.top/en/languages/rust/rust-lambda-coldstart/</link><pubDate>Wed, 21 Jan 2026 14:00:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/rust-lambda-coldstart/</guid><description>A chat with a friend about the cold start performance differences between Rust and Go on AWS Lambda. Why does Rust seem to lose? When should you use which language? The stories hidden behind those monitoring charts.</description></item><item><title>Rust Multimedia: A 21-Year-Old Rewriting FFmpeg in Rust—Crazy or Genius?</title><link>https://rexai.top/en/languages/rust/rust-multimedia/</link><pubDate>Tue, 20 Jan 2026 10:00:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/rust-multimedia/</guid><description>A 21-year-old developer, Ajay Kumar, is rewriting FFmpeg from scratch in pure Rust. Why would anyone do this, and what does Rust change for multimedia work?</description></item><item><title>Const Generics: This Rust Feature Cut Our Code by 85%</title><link>https://rexai.top/en/languages/rust/rust-const-generics-intro/</link><pubDate>Sun, 18 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-const-generics-intro/</guid><description>From 8,347 lines to 1,243 lines — the rebirth of a cryptography library</description></item><item><title>The Rust Async Trap Everyone Steps On Once</title><link>https://rexai.top/en/languages/rust/2026-01-15-rust-async-footgun/</link><pubDate>Thu, 15 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/2026-01-15-rust-async-footgun/</guid><description>It compiles. It runs. It even passes stress tests... until production catches fire. Let&amp;#39;s talk about that classic async Rust pitfall everyone hits.</description></item><item><title>Rust Design Patterns: 3 Best Practices Senior Backend Engineers Always Use</title><link>https://rexai.top/en/languages/rust/rust-senior-patterns/</link><pubDate>Sat, 10 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-senior-patterns/</guid><description>Discover the Rust design patterns senior engineers swear by: Newtype pattern prevents invalid states, ownership design reflects system boundaries, enum error handling makes failures predictable. Master these Rust best practices to build rock-solid backend code and say goodbye to midnight incidents.</description></item><item><title>I Rewrote Our Python Data Pipeline in Rust: 3 Hours to 4 Minutes, 40x Faster</title><link>https://rexai.top/en/languages/rust/rust-duckdb-pipeline-40x-faster/</link><pubDate>Thu, 08 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-duckdb-pipeline-40x-faster/</guid><description>A real-world case study of rewriting a Python data pipeline with Rust + DuckDB. From 3-hour daily ETL jobs to 4-minute runs, memory usage dropped from 12GB to 600MB, and server costs cut by two-thirds.</description></item><item><title>Rust Compiler Pipeline Refactor: 35% Faster Build Times, But There's a Catch</title><link>https://rexai.top/en/languages/rust/rust-compiler-pipeline-35-faster/</link><pubDate>Thu, 08 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-compiler-pipeline-35-faster/</guid><description>Our team&amp;#39;s CI dropped from 42 minutes to 27 minutes just by upgrading the Rust compiler. This journey taught us one thing: performance optimization rewards those who measure, punishes those who guess.</description></item><item><title>Rust Lifetimes Scare Away 90% of Programmers? One Library Analogy Gets You There in Seconds</title><link>https://rexai.top/en/languages/rust/rust-lifetimes-secrets/</link><pubDate>Tue, 06 Jan 2026 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-lifetimes-secrets/</guid><description>Compiler errors got you running? Relax. Rust lifetimes aren&amp;#39;t scary monsters—they&amp;#39;re invisible guardians ensuring your code never crashes. This 5-minute guide beats the official docs.</description></item><item><title>Rust Performance Pitfalls: When Rust Runs Slower Than Python</title><link>https://rexai.top/en/languages/rust/rust-slower-than-python/</link><pubDate>Tue, 30 Dec 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-slower-than-python/</guid><description>Rust performance optimization in practice: I watched my Rust rewrite get crushed by Python. The problem was data structure choice.</description></item><item><title>From 800ms to 90ms: How Rust Rayon Saved My Multithreading Nightmare</title><link>https://rexai.top/en/languages/rust/rust-rayon-multithreading-optimization/</link><pubDate>Wed, 17 Dec 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-rayon-multithreading-optimization/</guid><description>A real Rust concurrency case study: replacing manual threads with Rayon&amp;#39;s work-stealing scheduler and getting a 9x speedup.</description></item><item><title>io_uring Guide: Building High-Performance Servers with Rust and Async IO</title><link>https://rexai.top/en/languages/rust/rust-io-uring-server-syscalls/</link><pubDate>Tue, 16 Dec 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-io-uring-server-syscalls/</guid><description>A friendly deep-dive into Linux io_uring async IO technology, learn how to build high-performance servers with Rust and escape syscall bottlenecks</description></item><item><title>Rust mmap Memory-Mapped I/O: Why Reading Files Can Be as Fast as Accessing Memory</title><link>https://rexai.top/en/languages/rust/rust-memory-mapped-io-mmap/</link><pubDate>Mon, 15 Dec 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-memory-mapped-io-mmap/</guid><description>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.</description></item><item><title>Pop!_OS 24.04 is Here: The World's First Rust-Built Desktop Environment</title><link>https://rexai.top/en/languages/rust/pop-os-cosmic-rust-desktop-2025/</link><pubDate>Sat, 13 Dec 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/pop-os-cosmic-rust-desktop-2025/</guid><description>System76 releases Pop!_OS 24.04 and COSMIC desktop environment - the first production-grade desktop environment written entirely in Rust, challenging 20 years of GTK/Qt dominance. In-depth review: performance, customization, and tiling window management</description></item><item><title>Is the Electron Era Ending? Rust GPUI Lets You Stop Compromising on Cross‑Platform</title><link>https://rexai.top/en/languages/rust/rust-gpui-cross-platform-reset/</link><pubDate>Sun, 09 Feb 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-gpui-cross-platform-reset/</guid><description>Electron made desktop cross‑platform easy; Rust GPUI makes it feel native fast. This beginner‑friendly briefing explains the core idea, the minimal runnable path, and a humane migration plan.</description></item><item><title>I Told Old Zhang His Rust Service Might Be 10x Slower - He Almost Spit Coffee in My Face</title><link>https://rexai.top/en/languages/rust/rust-slower-by-serde-macro/</link><pubDate>Sat, 18 Jan 2025 23:30:00 +0800</pubDate><guid>https://rexai.top/en/languages/rust/rust-slower-by-serde-macro/</guid><description>Rust service suddenly 10x slower? The problem might be hiding in Serde macros. This article walks through a real story to help you identify and fix performance issues caused by Serde serialization.</description></item><item><title>I Fired My Entire Node.js Stack — Rust Rebuilt It in 3 Weeks (The Ugly Truth)</title><link>https://rexai.top/en/languages/rust/nodejs-to-rust-migration-ugly-truth/</link><pubDate>Sat, 11 Jan 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/nodejs-to-rust-migration-ugly-truth/</guid><description>API latency dropped from 850ms to 8ms, monthly costs from $12,000 to $900. Sounds great? The price was three months of hell and a team on the verge of collapse. This is a real backend migration story.</description></item><item><title>I Thought Rust Was Over-Engineering—Until I Saw the Production Logs</title><link>https://rexai.top/en/languages/rust/rust-production-logs-awakening/</link><pubDate>Thu, 09 Jan 2025 00:00:00 +0000</pubDate><guid>https://rexai.top/en/languages/rust/rust-production-logs-awakening/</guid><description>A 2 AM production incident made me rethink Rust. From 8 crashes per hour to zero crashes—this isn&amp;#39;t about language wars, it&amp;#39;s about trust.</description></item></channel></rss>