redrop

Tutorial

A gentle, chapter-by-chapter walkthrough. Each one builds on the last, and every code sample matches what's actually in the showcase/ crate in the redrop repository, so you can run it yourself alongside reading.

If you're new to proc macros or to async Rust, that's fine — we'll go slowly and explain each piece before using it.

  1. Why Drop Can't Be Async
  2. Setting Up
  3. Your First #[async_drop]
  4. Handling Load: Concurrency and the Background Daemon
  5. Keeping Configuration Out of Your Code
  6. Shutting Down Cleanly