Rust Macros 2.0 starter guide cover illustration

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.

October 30, 2025 · 12 min · 2465 words · February 12, 2025 · Rexai Programming

OpenSpec Installation and Project Initialization Guide

How to install and run OpenSpec for this repository and your team: npx (no install), global install, binary/internal distribution, and quick validation steps.

October 24, 2025 · 2 min · 214 words · Rexai Programming

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.

August 13, 2025 · 6 min · 1278 words · Rexai Programming
Rust async is compiled into a state machine and driven by Future, poll, and Waker

Rust Async State Machine, Unmasked: How Future, poll, and Waker Really Work

A practical deep dive into Rust async: why calling an async function doesn’t run it, how the compiler turns async into a state machine, and how executors drive tasks forward with poll and Waker. Understand the real mechanics behind async/await.

August 10, 2025 · 4 min · 770 words · Rexai Programming
High‑value AI Toolkit Less than a coffee/month →
扫码关注公众号
微信公众号二维码

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