docs.rs failed to build kres-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rust-kres
This crate provids a safe interface for Knot Resolver library (libkres). libkres is an implementation of a full DNS recursive resolver, including cache and DNSSEC validation. It doesn't require a specific I/O model and instead provides a generic interface for pushing/pulling DNS messages until the request is satisfied.
Example:
use ;
use ;
// DNS message wire format
let question = ;
let from_addr = "127.0.0.1:1234"..unwrap;
let context = new;
let req = new;
let mut state = req.consume;
// Process the subrequests
while state == PRODUCE
// Convert request into final answer
let answer = req.finish.unwrap;