mini-c-ares-resolver

Crates.iomini-c-ares-resolver
lib.rsmini-c-ares-resolver
version0.2.2
sourcesrc
created_at2023-07-31 03:53:02.339844
updated_at2023-10-10 10:07:48.632354
descriptionAn asynchronous DNS resolver, backed by mini-c-ares.
homepage
repositoryhttps://github.com/zh-jq/mini-c-ares-resolver
max_upload_size
id930477
size60,770
Zhang Jingqiang (zh-jq)

documentation

https://docs.rs/mini-c-ares-resolver

README

mini-c-ares-resolver

A fork of c-ares-resolver, which use mini-c-ares instead of c-ares. , for asynchronous DNS requests.

This crate provides three resolver types - the Resolver, the FutureResolver, and the BlockingResolver:

  • The Resolver is the thinnest wrapper around the underlying c-ares library. It returns answers via callbacks. The other resolvers are built on top of this.
  • The FutureResolver returns answers as std::future::Futures.
  • The BlockingResolver isn't asynchronous at all - as the name suggests, it blocks until the lookup completes.

Documentation

API documentation is here.

Contributing

Contributions should be sent to c-ares-resolver.

Commit count: 278

cargo fmt