fix: install default crypto provider

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-10-01 09:23:22 +02:00
parent 43f589b016
commit 2e0779fc6c
No known key found for this signature in database
GPG key ID: E13DFD4B47127951
3 changed files with 3 additions and 0 deletions

1
Cargo.lock generated
View file

@ -1741,6 +1741,7 @@ dependencies = [
"redis",
"regex",
"reqwest 0.12.8",
"rustls 0.23.13",
"serde",
"serde_json",
"tokio",

View file

@ -36,6 +36,7 @@ tokio = { version = "1.37.0", features = [
"rt-multi-thread",
"signal",
] }
rustls = "0.23.13"
[lints.rust]
unsafe_code = "forbid"

View file

@ -85,6 +85,7 @@ async fn main() -> eyre::Result<()> {
dotenvy::dotenv().ok();
color_eyre::install()?;
env_logger::init();
rustls::crypto::aws_lc_rs::default_provider().install_default().expect("Couldn't initialize crypto provider");
let token =
std::env::var("DISCORD_BOT_TOKEN").wrap_err("Couldn't find bot token in environment!")?;