Skip to content
Rust Search
← RustLab 2025

Dependency injection in Rust: a design review

RustLab Conference
RustLab 43:31 3124 views

Dependency injection (or auto-wiring) aims to simplify development in large codebases by decoupling the specification of inputs from the way they’re provided (or constructed) at runtime. Dependency injection is taken for granted in other language ecosystems (e.g. Java or C#). But what does it look like in Rust? Significant design exploration has occurred over the past ten years. This talk will cover two notable designs ( axum and Pavex), focusing on their key ideas, benefits, and limitations. LE

Player unavailable or embedding blocked? Use the YouTube link above.