Compare commits

...

2 commits

View file

@ -8,6 +8,12 @@ use tokio_gemini::certs::{
verifier::{SelfsignedCert, SelfsignedCertVerifier}, verifier::{SelfsignedCert, SelfsignedCertVerifier},
}; };
//
// cargo add tokio_gemini
// cargo add tokio -F macros,rt-multi-thread,io-util,fs
// cargo add dashmap
//
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), tokio_gemini::LibError> { async fn main() -> Result<(), tokio_gemini::LibError> {
let mut args = std::env::args(); let mut args = std::env::args();
@ -31,7 +37,6 @@ async fn main() -> Result<(), tokio_gemini::LibError> {
.build() .build()
} else { } else {
tokio_gemini::Client::builder() tokio_gemini::Client::builder()
.with_webpki_roots() // TODO: do we really need them?
.with_selfsigned_cert_verifier(CertVerifier::init().await?) .with_selfsigned_cert_verifier(CertVerifier::init().await?)
.build() .build()
}; };