From 39049fe4804ec30863bf0e91627cfe70b360fe2d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 20 Nov 2025 21:18:37 -0500 Subject: [PATCH] email_sender, reusable_types - rustls --- Cargo.lock | 6 +++++- Cargo.toml | 2 +- crates/lib/email_sender/Cargo.toml | 2 +- crates/schema/public/reusable_types/Cargo.toml | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 999f2ffa51..e012671598 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6135,13 +6135,15 @@ dependencies = [ "httpdate", "idna 0.5.0", "mime", - "native-tls", "nom", "once_cell", "quoted_printable", + "rustls 0.21.12", + "rustls-pemfile 1.0.4", "socket2 0.5.10", "tokio", "url", + "webpki-roots 0.25.3", ] [[package]] @@ -9192,6 +9194,7 @@ dependencies = [ "serde", "serde_derive", "sqlx", + "sqlx-core", "toml 0.8.22", "workspace-build-acceleration", ] @@ -9499,6 +9502,7 @@ version = "0.21.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" dependencies = [ + "log", "ring", "rustls-webpki 0.101.7", "sct", diff --git a/Cargo.toml b/Cargo.toml index 4922216a02..61c73df1b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -246,7 +246,7 @@ log = "0.4.27" once_cell = "1.21.3" rand = "0.9.1" regex = "1.12.2" -reqwest = { version = "0.12.23", features = ["json", "cookies"] } +reqwest = { version = "0.12.23", default-features = false, features = [ "charset", "http2", "system-proxy", "json", "cookies", "rustls-tls" ] } reqwest-websocket = { version = "0.5.0" } serde = { version = "1.0.219", features = ["derive"] } serde_derive = "1.0.219" diff --git a/crates/lib/email_sender/Cargo.toml b/crates/lib/email_sender/Cargo.toml index 27e6c44c33..7365e9a3ff 100644 --- a/crates/lib/email_sender/Cargo.toml +++ b/crates/lib/email_sender/Cargo.toml @@ -20,5 +20,5 @@ errors = { path = "../errors" } workspace-build-acceleration = { version = "0.1", path = "../../workspace-build-acceleration" } # External -lettre = "0.11.2" +lettre = { version = "0.11.2", default-features = false, features = ["smtp-transport", "pool", "hostname", "builder", "rustls-tls"] } diff --git a/crates/schema/public/reusable_types/Cargo.toml b/crates/schema/public/reusable_types/Cargo.toml index 8cbb361db6..b51a3c7073 100644 --- a/crates/schema/public/reusable_types/Cargo.toml +++ b/crates/schema/public/reusable_types/Cargo.toml @@ -30,7 +30,8 @@ serde = { workspace = true } serde_derive = { workspace = true } # MySql Database -sqlx = { version = "0.7.4", features = [ "mysql", "runtime-tokio", "tls-rustls", "chrono" ] } +sqlx = { version = "0.7.4", default-features = false, features = [ "mysql", "runtime-tokio-rustls", "chrono" ] } +sqlx-core = { version = "0.7.4", features = ["rustls"] } [dev-dependencies] # Test serialization