Skip to content

Commit 352a53b

Browse files
committed
fix(tls): install rustls ring provider at startup
1 parent a735886 commit 352a53b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
fn main() {
2+
// Install an explicit rustls crypto provider at startup. We use `ring`
3+
// because it tends to be the most reliable/easiest provider to build
4+
// across common Linux packaging environments.
5+
rustls::crypto::ring::default_provider()
6+
.install_default()
7+
.expect("failed to install rustls crypto provider");
8+
29
if let Err(err) = things3_cloud::app::run() {
310
eprintln!("{err}");
411
std::process::exit(1);

0 commit comments

Comments
 (0)