diff --git a/Cargo.toml b/Cargo.toml index 1a40956..1c1c5ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,7 @@ tokio = { version = "1.39.2", features = ["macros", "rt-multi-thread"] } webpki = ["dep:webpki-roots"] file-sscv = ["dep:dashmap", "tokio/fs"] +dane = ["hickory"] hickory = ["dep:hickory-client"] hickory-dot = ["hickory", "hickory-client/dns-over-rustls"] hickory-doh = ["hickory", "hickory-client/dns-over-https-rustls"] @@ -47,8 +48,3 @@ path = "examples/simple.rs" name = "main" path = "examples/main.rs" required-features = ["file-sscv"] - -[[example]] -name = "dane" -path = "examples/dane.rs" -required-features = ["hickory"] diff --git a/examples/dane.rs b/examples/dane.rs deleted file mode 100644 index 862ab4a..0000000 --- a/examples/dane.rs +++ /dev/null @@ -1,16 +0,0 @@ -use tokio_gemini::dns::DnsClient; - -#[tokio::main] -async fn main() { - let mut client = DnsClient::init(("1.1.1.1", 53)).await.unwrap(); - println!( - "{}", - client - .query_tlsa("torproject.org", 443) - .await - .unwrap() - .next() - .unwrap() - .hex() - ); -}