Codegen your problems away - device-driver toolkit
summary
Codegen tool that converts a YAML/DSL input into a Rust driver via a compiler-like proc‑macro pipeline, producing about 18,000 lines generated from a 2,100‑line spec (≈9× code savings). It models registers, commands and buffers, supports endianness and field conversions, exposes platform IO via a read/write trait, and ships with 97 tests and a documented 1.0 released Dec. Missing: multi‑register batch ops and dynamic‑length commands blocked by current const‑generic limits.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:53C++ to Rust for embedded
- 6:54Writing device drivers in Rust
- 12:17First toolkit version
- 15:53Rewriting as procedural macro
- 18:44Compiler-inspired architecture
- 21:36Version 1.0 and scaling
- 24:03Future improvements
- 26:31Call to action
- 27:14Q&A
related talks
25m"Compiler-Driven Development: Making Rust Work for You"
28mGenerating ergonomic C++ APIs using Rustdoc, procedural macros, and Serde
25mMaking Tools for Rust: An Introduction to the Compiler and How It Can Help You
35mAll aboard the Rust (electric freight) train!
56mReady for Rust
34mGood or Bad Vibes? Coding with AI in Rust
31mGetting Something for Nothing
24mMacros for a More Productive Rust
