alias dane feature to hickory, remove dane.rs example

This commit is contained in:
DarkCat09 2024-08-19 11:35:18 +04:00
parent dc126d2e0f
commit e77b785fa0
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
2 changed files with 1 additions and 21 deletions

View file

@ -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"]

View file

@ -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()
);
}