Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Move lettre to a workspace dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed May 2, 2024
1 parent 3567f7c commit a99427e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 3 additions & 7 deletions crates/email/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion crates/graphql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/handlers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a99427e

Please sign in to comment.