MCPcopy Create free account
hub / github.com/clawshell/clawshell / ensure_rustls_crypto_provider

Function ensure_rustls_crypto_provider

src/main.rs:613–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

611}
612
613fn ensure_rustls_crypto_provider() -> Result<(), Box<dyn Error>> {
614 if rustls::crypto::CryptoProvider::get_default().is_some() {
615 return Ok(());
616 }
617
618 rustls::crypto::ring::default_provider()
619 .install_default()
620 .map_err(|_| std::io::Error::other("failed to install rustls ring CryptoProvider"))?;
621 Ok(())
622}
623
624#[tokio::main]
625async fn main() -> Result<(), Box<dyn std::error::Error>> {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected