Static streams for faster async Rust proxies

Last week in Tokio’s Discord chat server someone asked a really interesting question: how can you stream a multipart body from an incoming request into an outgoing request? My struggle to answer this really helped me understand Rust async lifetimes. We’ll… Read more


Building Realtime APIs in Rust

I’ve been working recently on Backtalk, a little toy Rust framework for building realtime APIs. Let’s say you’re building a hot new tech startup — Facebook for Cats. You’re going to need a web server to track all these cats. Let’s build one quickly using ... (more…)

Read more »

Implementing a Type-safe printf in Rust

I show how to use heterogeneous lists and traits to implement a type-safe printf in Rust. These mechanisms can ensure that two variadic argument lists share important properties, like the number of format string holes matches the number of printf argument... (more…)

Read more »