From e77b785fa033742c78f34a47bc46bd02108d99bf Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Mon, 19 Aug 2024 11:35:18 +0400 Subject: [PATCH] alias `dane` feature to `hickory`, remove dane.rs example --- Cargo.toml | 6 +----- examples/dane.rs | 16 ---------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 examples/dane.rs 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() - ); -}