58 releases (32 stable)

9.0.0 Feb 23, 2024
8.2.0 Nov 30, 2023
7.8.0 Oct 28, 2023
7.6.0 Jan 28, 2023
0.9.0 Jul 30, 2015

#236 in Asynchronous

Download history 245/week @ 2024-01-22 434/week @ 2024-01-29 335/week @ 2024-02-05 249/week @ 2024-02-12 648/week @ 2024-02-19 648/week @ 2024-02-26 459/week @ 2024-03-04 404/week @ 2024-03-11 440/week @ 2024-03-18 440/week @ 2024-03-25 432/week @ 2024-04-01 351/week @ 2024-04-08 386/week @ 2024-04-15 206/week @ 2024-04-22 266/week @ 2024-04-29 579/week @ 2024-05-06

1,438 downloads per month
Used in 11 crates (3 directly)

MIT license

2MB
49K SLoC

C 32K SLoC // 0.1% comments C++ 10K SLoC // 0.1% comments Rust 5K SLoC // 0.0% comments M4 1.5K SLoC // 0.4% comments Bitbake 299 SLoC // 0.0% comments Automake 105 SLoC // 0.3% comments Shell 95 SLoC // 0.2% comments Perl 65 SLoC // 0.1% comments AWK 17 SLoC // 0.3% comments Batch 8 SLoC // 0.5% comments

rust-c-ares

A Rust wrapper for the c-ares library, for asynchronous DNS requests.

Most users should likely prefer c-ares-resolver, which offers a much simpler API.

Crates.io Build Status

Documentation

  • API documentation is here.
  • There are some example programs here.

Setting the feature build-cmake will cause the c-ares library to be built using cmake. This is significantly faster than the default autotools build on unix platforms: so if it works for you, you should probably prefer it.

Contributing

Contributions are welcome. Please send pull requests!

Dependencies

~0.5–9.5MB
~91K SLoC