Skip to content

Commit 8e5ac84

Browse files
madeyeclaude
andcommitted
Fix rustls CryptoProvider initialization for runtime
Install aws-lc-rs as the default CryptoProvider before server startup, required by rustls 0.23+. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a9caeed commit 8e5ac84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ fn main() -> anyhow::Result<()> {
5454

5555
#[tokio::main]
5656
async fn run_server(config_path: String) -> anyhow::Result<()> {
57+
tokio_rustls::rustls::crypto::aws_lc_rs::default_provider()
58+
.install_default()
59+
.expect("failed to install default CryptoProvider");
60+
5761
tracing_subscriber::fmt()
5862
.with_env_filter(
5963
tracing_subscriber::EnvFilter::try_from_default_env()

0 commit comments

Comments
 (0)