#async
8 articles tagged #async. All tags
The case for sans-io
The most popular option to decompress ZIP files from the Rust programming language is a crate simply named zip — At the time of this writing, it has 48 million downloads. It’s fully-featured…
26 min
Catching up with async Rust
In December 2023, a minor miracle happened: async fn in traits shipped. As of Rust 1.39, we already had free-standing async functions: pub async fn read_hosts() -> eyre::Result<Vec<u8>> {. // etc. }.…
20 min
The curse of strong typing
It happened when I least expected it. Someone, somewhere (above me, presumably) made a decision. “From now on”, they declared, “all our new stuff must be written in Rust”. I’m not sure where they got…
1 h 34 min
Futures Nostalgia
Up until recently, hyper was my favorite Rust HTTP framework. It’s low-level, but that gives you a lot of control over what happens. Here’s what a sample hyper application would look like: $ cargo…
29 min
Understanding Rust futures by going way too deep
So! Rust futures! Easy peasy lemon squeezy. Until it’s not. So let’s do the easy thing, and then instead of waiting for the hard thing to sneak up on us, we’ll go for it intentionally. That’s…
45 min
Pin and suffering
Disclaimer: async fn in trait has shipped in Rust 1.75, about 2.5 years after this article was written. I’d like to think that my understanding of “async Rust” has increased over the past year or so.…
34 min
Surviving Rust async interfaces
I used to be afraid of async Rust. It’s easy to get into trouble! But thanks to the work done by the whole community, async Rust is getting easier to use every week. One project I think is doing…
28 min
Getting in and out of trouble with Rust futures
I started experimenting with asynchronous Rust code back when futures 0.1 was all we had - before async/await. I was a Rust baby then (I’m at least a toddler now), so I quickly drowned in a sea of…
14 min