tokio-dns
Asynchronous name resolution utilities for the futures and tokio-core crates. Look at the crate-level documentation for more details.
This library has been packaged to crates.io. Note that its name on crates.io is tokio-dns-unofficial, but the crate's name is tokio_dns (when using extern crate ...).
Changelog
0.3.0
- Update to the new
tokiocrate. - Change the API to look more like
tokio's API. - New
resolvefree function to resolve a hostname asynchronously using the default resolver.
Demo
// Taken from examples/basic.rs
use TcpStream;
// connect using the built-in resolver.
let conn = connect.and_then;