A Rust wrapper for the c-ares
library, for asynchronous DNS requests.
To use c-ares
, add this to your Cargo.toml
:
[dependencies]
c-ares = "*"
And add this to your crate root:
extern crate c_ares;
Development has taken place on Linux. The library uses the std::os::unix::io::RawFd
type to represent file descriptors - so if Rust doesn't consider that you have a Unix system, then this crate won't work for you.
It's a long-term goal to support other platforms - but don't hold your breath.
This crate does not ship with its own copy of c-ares
. To compile successfully, you'll need to have installed the c-ares-devel
package (or equivalent).
Contributions are welcome. Please send pull requests!