Crates.io | mini-c-ares-resolver |
lib.rs | mini-c-ares-resolver |
version | 0.2.2 |
source | src |
created_at | 2023-07-31 03:53:02.339844 |
updated_at | 2023-10-10 10:07:48.632354 |
description | An asynchronous DNS resolver, backed by mini-c-ares. |
homepage | |
repository | https://github.com/zh-jq/mini-c-ares-resolver |
max_upload_size | |
id | 930477 |
size | 60,770 |
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
:
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.FutureResolver
returns answers as std::future::Future
s.BlockingResolver
isn't asynchronous at all - as the name suggests, it
blocks until the lookup completes.API documentation is here.
Contributions should be sent to c-ares-resolver.