# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

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

[lib]
name = "mail_send"
path = "src/lib.rs"
doctest = false

[[example]]
name = "smtp_auth"
path = "examples/smtp_auth.rs"

[[example]]
name = "smtp_dkim"
path = "examples/smtp_dkim.rs"

[[example]]
name = "smtp_raw_message"
path = "examples/smtp_raw_message.rs"

[[example]]
name = "smtp_relay"
path = "examples/smtp_relay.rs"

[[example]]
name = "smtp_tls_relay"
path = "examples/smtp_tls_relay.rs"

[dependencies.base64]
version = "0.22"

[dependencies.gethostname]
version = "1.0"

[dependencies.mail-auth]
version = "0.8"
optional = true

[dependencies.mail-builder]
version = "0.4"
optional = true

[dependencies.mail-parser]
version = "0.11"
optional = true

[dependencies.md5]
version = "0.8"
optional = true

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rustls]
version = "0.23"
features = ["std"]
default-features = false

[dependencies.rustls-pki-types]
version = "1"

[dependencies.rustls-platform-verifier]
version = "0.7"

[dependencies.smtp-proto]
version = "0.2"

[dependencies.tokio]
version = "1.51"
features = [
    "net",
    "io-util",
    "time",
]

[dependencies.tokio-rustls]
version = "0.26"
default-features = false

[dev-dependencies.env_logger]
version = "0.11.0"

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