simple_smtp_sender 0.4.1

A Simple SMTP Email sender crate with the support of sync or async sending. Can be called from Python. Powered by PyO3.
Documentation
# 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 = "simple_smtp_sender"
version = "0.4.1"
authors = ["Guangyu He <fredhgy2010@gmail.com>"]
build = false
exclude = [
    "RELEASE.md",
    "simple_smtp_sender.pyi",
    ".gitignore",
    "pyproject.toml",
    "tests/*",
    "examples/*",
    "docs/*",
    "mac_build.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Simple SMTP Email sender crate with the support of sync or async sending. Can be called from Python. Powered by PyO3."
readme = "README.md"
license = "MIT"
repository = "https://github.com/guangyuhe/simple_smtp_sender"

[features]
default = ["rslib"]
python = [
    "dep:pyo3",
    "dep:pyo3-async-runtimes",
    "dep:serde-pyobject",
]
rslib = []

[lib]
name = "simple_smtp_sender"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.mime_guess]
version = "2.0"

[dependencies.pyo3]
version = "0.28"
features = [
    "extension-module",
    "abi3-py310",
    "generate-import-lib",
]
optional = true

[dependencies.pyo3-async-runtimes]
version = "0.28"
features = [
    "attributes",
    "tokio-runtime",
]
optional = true

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

[dependencies.serde-pyobject]
version = "0.8.0"
optional = true

[dev-dependencies.tokio]
version = "1.49"
features = [
    "test-util",
    "rt",
    "macros",
]