INNER CODE UNIT · Rust
init_crypto
wasmCloud/wasmCloud · crates/wash-runtime/src/lib.rs:38
pub fn init_crypto() {
use std::sync::Once;
static INIT: Once = Once::new();
INIT.call_once(|| {
if rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.is_err()
{
tracing::warn!(
"a rustls CryptoProvider was already installed; \
wasmCloud standardizes on aws-lc-rs — check dependencies if this is unexpected"
);
}
});
}
// The one test here starts a host around the `wasi:config` plugin, so it only
// exists in a build that has one.