Skip to content
Rust Search
← Browse conferences

Dependency injection in Rust: a design review

RustLab Conference
RustLab 43:31 3444 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.

Other talks by Luca Palmieri

Another Unfair Rust Quiz

RustLab Conference
RustLab 40:43 354 views

How well do you know Rust? If the core language is well-defined and relatively straightforward, things get interesting when we start exploring the corners few people have to deal with. This quiz is an interactive experience where the whole audience can participate. LEVEL: Introductory and Overview

Rewrite, Optimize, Repeat: Our Journey Porting a Triemap from C to Rust

EuroRust
33:10 3489 views

In this talk, you’ll learn about an experience porting a battle-tested C TrieMap implementation to Rust, as part of a larger C-to-Rust migration of Redis’ search capabilities. We’ll walk through the missteps, the initial design we implemented and then discarded, the profiling rabbit holes, and the eventual breakthroughs that led us to a Rust version that not only matched but outperformed the original, without compromising safety and memory usage. Along the way, we’ll cover design tradeoffs, lessons in data layout, and how custom DSTs and a deep understanding of Rust’s memory model helped one team turn a rewrite into a real upgrade. If you’ve ever been tempted to replace C with Rust (or you’re planning to), this talk is for you.

Rewrite, Optimize, Repeat: Our Journey Porting a Triemap from C to Rust

Rust Foundation
RustConf 34:58 6836 views

In this talk, you’ll learn about an experience porting a battle-tested C TrieMap implementation to Rust, as part of a larger C-to-Rust migration of Redis’ search capabilities. We’ll walk through the missteps, the initial design we implemented and then discarded, the profiling rabbit holes, and the eventual breakthroughs that led us to a Rust version that not only matched but outperformed the original, without compromising safety and memory usage. Along the way, we’ll cover design tradeoffs, lessons in data layout, and how custom DSTs and a deep understanding of Rust’s memory model helped one team turn a rewrite into a real upgrade. If you’ve ever been tempted to replace C with Rust (or you’re planning to), this talk is for you.