[package]
name = "mail-send"
description = "E-mail delivery library with SMTP and DKIM support"
version = "0.6.0"
edition = "2024"
authors = [ "Stalwart Labs <hello@stalw.art>"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/stalwartlabs/mail-send"
homepage = "https://github.com/stalwartlabs/mail-send"
keywords = ["smtp", "dkim", "email", "mime", "mail"]
categories = ["email"]
readme = "README.md"

[lib]
doctest = false

[dependencies]
smtp-proto = { version = "0.2" }
mail-auth = { version = "0.8", optional = true }
mail-builder = { version = "0.4", optional = true }
mail-parser = { version = "0.11", optional = true }
base64 = "0.22"
rand = { version = "0.9", optional = true }
md5 = { version = "0.8", optional = true }
tokio = { version = "1.51", features = ["net", "io-util", "time"]}
rustls = { version = "0.23", default-features = false, features = ["std"]}
tokio-rustls = { version = "0.26", default-features = false }
rustls-platform-verifier = "0.7"
rustls-pki-types = { version = "1" }
gethostname = { version = "1.0"}

[dev-dependencies]
tokio = { version = "1.51", features = ["net", "io-util", "time", "rt-multi-thread", "macros"] }
env_logger = "0.11.0"

[features]
default = ["digest-md5", "cram-md5", "builder", "dkim", "aws_lc_rs", "tls12"]
builder = ["mail-builder"]
parser = ["mail-parser"]
dkim = ["mail-auth"]
digest-md5 = ["md5", "rand"]
cram-md5 = ["md5"]
aws_lc_rs = ["rustls/aws_lc_rs", "tokio-rustls/aws_lc_rs"]
aws-lc-rs = ["aws_lc_rs"]
fips = ["rustls/fips", "tokio-rustls/fips"]
logging = ["rustls/logging", "tokio-rustls/logging"]
ring = ["rustls/ring", "tokio-rustls/ring"]
tls12 = ["rustls/tls12", "tokio-rustls/tls12"]
