# 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 = "smtp_recv"
version = "0.1.12"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure SMTP server with Implicit TLS and SNI support / 支持隐式 TLS 和 SNI 的安全 SMTP 服务器"
homepage = "https://github.com/js0-site/rust/tree/main/smtp_recv"
readme = "README.md"
keywords = [
    "smtp",
    "server",
    "tls",
    "async",
    "email",
]
license = "MulanPSL-2.0"
repository = "https://github.com/js0-site/rust.git"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []

[lib]
name = "smtp_recv"
path = "src/lib.rs"

[[test]]
name = "main"
path = "tests/main.rs"

[[test]]
name = "simple_auth"
path = "tests/simple_auth.rs"

[dependencies.anyhow]
version = "1.0.100"

[dependencies.aok]
version = "0.1.18"

[dependencies.auth_trait]
version = "0.1.5"

[dependencies.base64]
version = "0.22.1"

[dependencies.email_address]
version = "0.2.9"

[dependencies.log]
version = "0.4.29"

[dependencies.mail_struct]
version = "0.1.10"

[dependencies.rustls]
version = "0.23.35"
features = ["ring"]

[dependencies.ssl_trait]
version = "0.1.3"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "time",
    "sync",
    "full",
]

[dependencies.tokio-rustls]
version = "0.26.4"

[dependencies.xboot]
version = "0.1.29"

[dependencies.xerr]
version = "0.1.16"

[dependencies.xmail]
version = "0.1.16"

[dev-dependencies.aok]
version = "0.1.18"

[dev-dependencies.cert_by_host]
version = "0.1.6"

[dev-dependencies.lettre]
version = "0.11.19"
features = [
    "tokio1",
    "rustls-tls",
    "builder",
    "tokio1-rustls-tls",
    "smtp-transport",
]
default-features = false

[dev-dependencies.log_init]
version = "0.1.28"

[dev-dependencies.mail-parser]
version = "0.11.1"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.serde_yaml_bw]
version = "2.5.1"

[dev-dependencies.static_init]
version = "1.0.4"

[dev-dependencies.webpki-roots]
version = "1.0.4"
