#async-dns #dns #api-bindings #requests #user #offers

c-ares

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

65 releases (39 stable)

11.1.0 Oct 10, 2024
10.1.0 Jul 3, 2024
9.2.1 May 26, 2024
9.0.0 Feb 23, 2024
0.9.0 Jul 30, 2015

#294 in Asynchronous

Download history 1806/week @ 2024-11-19 1324/week @ 2024-11-26 2029/week @ 2024-12-03 1739/week @ 2024-12-10 1065/week @ 2024-12-17 268/week @ 2024-12-24 657/week @ 2024-12-31 942/week @ 2025-01-07 1102/week @ 2025-01-14 452/week @ 2025-01-21 1312/week @ 2025-01-28 1627/week @ 2025-02-04 1074/week @ 2025-02-11 1188/week @ 2025-02-18 652/week @ 2025-02-25 1118/week @ 2025-03-04

4,390 downloads per month
Used in 10 crates (3 directly)

MIT license

2MB
46K SLoC

C 27K SLoC // 0.2% comments C++ 12K SLoC // 0.1% comments Rust 5.5K SLoC // 0.0% comments M4 1.5K SLoC // 0.4% comments Bitbake 312 SLoC // 0.0% comments Shell 113 SLoC // 0.2% comments Automake 110 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
~86K SLoC