Rust #[must_use] attribute: three usage patterns on structs, functions, and traits

Rust's #[must_use]: Making Sure Your Return Values Can't Be Ignored

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.

March 22, 2026 · 5 min · 1059 words · 梦兽编程
Rust Enum Complete Guide Cover

Don't Underestimate Rust Enums: A Complete Hands-On Guide

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.

February 15, 2026 · 9 min · 1881 words · Rex Programming
PgDog Protobuf vs Direct FFI Performance Comparison

PostgreSQL Query Parsing Too Slow? PgDog Ditched Protobuf and Got 5x Faster

PgDog is a Rust-based PostgreSQL proxy. They discovered Protobuf serialization was the real bottleneck in SQL query parsing — not the Postgres parser itself. By replacing Protobuf with direct C-to-Rust FFI bindings, they achieved 5-10x faster parsing.

February 3, 2026 · 5 min · 1043 words · Dream Beast Programming
High‑value AI Toolkit Less than a coffee/month →
扫码关注公众号
微信公众号二维码

Weekly Rust / AI tips · Community Q&A · Exclusive perks