Compare commits

..

No commits in common. "053f042e00538aabf24a1e85d46e8ed2e8ae9d92" and "5533ec0d2bedea7eb6a6a8057fd9902f0c795628" have entirely different histories.

View file

@ -8,12 +8,6 @@ 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();
@ -37,6 +31,7 @@ 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()
}; };