alias dane
feature to hickory
, remove dane.rs example
This commit is contained in:
parent
dc126d2e0f
commit
e77b785fa0
2 changed files with 1 additions and 21 deletions
|
@ -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"]
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
}
|
Loading…
Add table
Reference in a new issue