You've already forked rust-tutor
- get claude to create rustlings style exercises based on chapter 10 of the book - update CLAUDE.md to prevent it from producing incorrect exercises - complete exercises/01-generic-cache-system
Configuration System Traits
Build a configuration system where different components (database, cache, logger) can be configured uniformly. You'll define traits that allow different types to be configured, validated, and reset in a standard way.
What you'll practice
- Defining traits that establish contracts between types
- Implementing the same trait for different struct types
- Using traits as function parameters with
impl Traitsyntax - Creating functions that work with any type implementing specific traits