Async DNS with Mac OS Getaddrinfo_async_start and Rust Smol
fnordig.de·11h·
Discuss: Hacker News
Flag this post

Nov 07, 2025 · 1 minute read

In the previous blog post I showed how to use getaddrinfo_async_start from C. However I didn’t stop there and decided to see if I can fit that into the smol async stack in Rust.

smol is a small and fast async runtime. It’s an alternative to the probably more known tokio project and is based on several smaller crates like async-io and async-net as its building blocks.

To make use of getaddrinfo_async_start I had to start at the lowest layer: rustix, the safe Rust bindings to syscalls. It didn’t know about EVFILT_MACHPORT for [kqueue…

Similar Posts

Loading similar posts...