diff options
| author | Max Audron <audron@cocaine.farm> | 2025-05-06 16:53:00 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-05-06 16:53:00 +0200 |
| commit | 861ac23c78a3884695d7f7e018a314481010b603 (patch) | |
| tree | 9d787ea25f8e6819f9194dede188e5e826263fdd | |
| parent | remove too commonly used used for shifty_eyes (diff) | |
fix rustls missing cryptoprovider
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | src/main.rs | 5 |
3 files changed, 6 insertions, 1 deletions
@@ -219,6 +219,7 @@ dependencies = [ "rand", "regex", "reqwest", + "rustls", "sasl", "serde", "serde_json", @@ -45,6 +45,7 @@ regex = "1" rand = "0.9" +rustls = "0.23" reqwest = { version = "0.12", default-features = false, features = [ "rustls-tls", "gzip", diff --git a/src/main.rs b/src/main.rs index 66148fd..ef32078 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,12 @@ #[tokio::main] async fn main() { - use catinator::{catinator}; + use catinator::catinator; tracing_subscriber::fmt::init(); + rustls::crypto::CryptoProvider::install_default(rustls::crypto::aws_lc_rs::default_provider()) + .unwrap(); + let mut bot = catinator::Bot::new().await.unwrap(); let mut sed = catinator::hooks::sed::Sed::new(); |
