#api-bindings

c-ares

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

52 releases (26 stable)

7.6.0 Jan 28, 2023
7.5.2 Nov 6, 2021
7.5.0 Oct 26, 2021
7.3.0 Nov 29, 2020
0.9.0 Jul 30, 2015

#359 in Network programming

Download history 684/week @ 2023-06-02 622/week @ 2023-06-09 510/week @ 2023-06-16 580/week @ 2023-06-23 806/week @ 2023-06-30 575/week @ 2023-07-07 664/week @ 2023-07-14 496/week @ 2023-07-21 265/week @ 2023-07-28 499/week @ 2023-08-04 606/week @ 2023-08-11 666/week @ 2023-08-18 390/week @ 2023-08-25 199/week @ 2023-09-01 217/week @ 2023-09-08 180/week @ 2023-09-15

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

MIT license

2MB
46K SLoC

C 23K SLoC // 0.1% comments C++ 18K SLoC // 0.1% comments Rust 4K SLoC // 0.0% comments Automake 127 SLoC // 0.2% comments Shell 96 SLoC // 0.1% comments Perl 65 SLoC // 0.0% comments Batch 8 SLoC // 0.4% 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