diff --git a/Cargo.toml b/Cargo.toml index fcd3c97c..2fea290e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -106,6 +106,12 @@ version = "0.25.0" features = ["http1", "http2"] default-features = false +# Email sending +[workspace.dependencies.lettre] +version = "=0.11.4" +default-features = false +features = ["tokio1-rustls-tls", "hostname", "builder", "tracing", "pool", "smtp-transport", "sendmail-transport"] + # Templates [workspace.dependencies.minijinja] version = "2.0.1" diff --git a/crates/email/Cargo.toml b/crates/email/Cargo.toml index a6cdee9f..905c0b98 100644 --- a/crates/email/Cargo.toml +++ b/crates/email/Cargo.toml @@ -13,13 +13,9 @@ workspace = true [dependencies] async-trait.workspace = true -tracing.workspace = true -thiserror.workspace = true headers.workspace = true +lettre.workspace = true +thiserror.workspace = true +tracing.workspace = true mas-templates.workspace = true - -[dependencies.lettre] -version = "0.11.4" -default-features = false -features = ["tokio1-rustls-tls", "hostname", "builder", "tracing", "pool", "smtp-transport", "sendmail-transport"] diff --git a/crates/graphql/Cargo.toml b/crates/graphql/Cargo.toml index 08bc9bc1..cb462516 100644 --- a/crates/graphql/Cargo.toml +++ b/crates/graphql/Cargo.toml @@ -16,7 +16,7 @@ anyhow.workspace = true async-graphql = { version = "6.0.11", features = ["chrono", "url"] } async-trait.workspace = true chrono.workspace = true -lettre = { version = "0.11.4", default-features = false } +lettre.workspace = true serde.workspace = true thiserror.workspace = true tokio = { version = "1.37.0", features = ["sync"] } diff --git a/crates/handlers/Cargo.toml b/crates/handlers/Cargo.toml index 2139e3ee..26102be9 100644 --- a/crates/handlers/Cargo.toml +++ b/crates/handlers/Cargo.toml @@ -37,7 +37,7 @@ axum-extra = { version = "0.8.0", features = ["cookie-private"] } async-graphql = { version = "6.0.11", features = ["tracing", "apollo_tracing"] } # Emails -lettre = { version = "0.11.4", default-features = false, features = ["builder"] } +lettre.workspace = true # Database access sqlx.workspace = true