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

#224 in Asynchronous

Download history 312/week @ 2023-12-22 455/week @ 2023-12-29 221/week @ 2024-01-05 184/week @ 2024-01-12 246/week @ 2024-01-19 392/week @ 2024-01-26 399/week @ 2024-02-02 232/week @ 2024-02-09 426/week @ 2024-02-16 810/week @ 2024-02-23 500/week @ 2024-03-01 416/week @ 2024-03-08 393/week @ 2024-03-15 465/week @ 2024-03-22 387/week @ 2024-03-29 380/week @ 2024-04-05

1,697 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–12MB
~102K SLoC