MailLaser 1.2.0

An SMTP server that listens for incoming emails addressed to a specific recipient and forwards them as HTTP POST requests to a configured webhook.
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 = "2021"
name = "MailLaser"
version = "1.2.0"
authors = ["Roland <roland@govcraft.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An SMTP server that listens for incoming emails addressed to a specific recipient and forwards them as HTTP POST requests to a configured webhook."
readme = "README.md"
keywords = [
    "smtp",
    "email",
    "webhook",
    "server",
    "forwarding",
]
categories = [
    "email",
    "network-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/Govcraft/mail-laser"

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

[[bin]]
name = "mail_laser"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.bytes]
version = "1"

[dependencies.dotenv]
version = "0.15"

[dependencies.env_logger]
version = "0.10"

[dependencies.html2text]
version = "0.14.2"

[dependencies.http-body]
version = "1.0.1"

[dependencies.http-body-util]
version = "0.1"

[dependencies.hyper]
version = "1.6"
features = [
    "client",
    "http1",
    "server",
]

[dependencies.hyper-rustls]
version = "0.27"
features = ["rustls-native-certs"]

[dependencies.hyper-util]
version = "0.1"
features = [
    "client",
    "http1",
    "tokio",
    "server",
]

[dependencies.log]
version = "0.4"

[dependencies.mailparse]
version = "0.16.1"

[dependencies.rcgen]
version = "0.14"
features = ["pem"]

[dependencies.rustls]
version = "0.23"

[dependencies.rustls-pemfile]
version = "2.1"

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

[dependencies.serde_json]
version = "1.0"

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

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

[dev-dependencies.once_cell]
version = "1.19"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "unwind"
strip = true