[package]
edition = "2021"
rust-version = "1.78"
name = "postcrate-core"
version = "0.1.1"
authors = ["Postcrate authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embeddable SMTP capture engine: server, multi-mailbox lifecycle, chaos simulation, SQLite persistence, HTTP API."
homepage = "https://github.com/postcrate/core"
readme = "README.md"
keywords = [
"smtp",
"email",
"mailbox",
"testing",
"mock",
]
categories = [
"email",
"development-tools::testing",
"network-programming",
]
license = "MIT"
repository = "https://github.com/postcrate/core"
[features]
default = []
specta = ["dep:specta"]
tls = [
"dep:tokio-rustls",
"dep:rustls-pemfile",
]
[lib]
name = "postcrate_core"
path = "src/lib.rs"
[[example]]
name = "embed"
path = "examples/embed.rs"
[[example]]
name = "send_test"
path = "examples/send_test.rs"
[[test]]
name = "fts_search"
path = "tests/fts_search.rs"
[[test]]
name = "http_api"
path = "tests/http_api.rs"
[[test]]
name = "http_auth"
path = "tests/http_auth.rs"
[[test]]
name = "mime_fixtures"
path = "tests/mime_fixtures.rs"
[[test]]
name = "pin_star_note"
path = "tests/pin_star_note.rs"
[[test]]
name = "recording"
path = "tests/recording.rs"
[[test]]
name = "release_email"
path = "tests/release_email.rs"
[[test]]
name = "rfc5321_conformance"
path = "tests/rfc5321_conformance.rs"
[[test]]
name = "smtp_auth"
path = "tests/smtp_auth.rs"
[[test]]
name = "smtp_extensions"
path = "tests/smtp_extensions.rs"
[[test]]
name = "smtp_happy_path"
path = "tests/smtp_happy_path.rs"
[[test]]
name = "sse_events"
path = "tests/sse_events.rs"
[[test]]
name = "starttls"
path = "tests/starttls.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "wait_for_email"
path = "tests/wait_for_email.rs"
[[test]]
name = "webhook_and_forward"
path = "tests/webhook_and_forward.rs"
[dependencies.anyhow]
version = "1"
[dependencies.arc-swap]
version = "1.7"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
features = [
"macros",
"json",
"tokio",
"http1",
]
[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls-no-provider"]
default-features = false
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1.8"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.dashmap]
version = "6"
[dependencies.futures-util]
version = "0.3"
[dependencies.http]
version = "1"
[dependencies.mail-parser]
version = "0.11"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rand]
version = "0.8"
[dependencies.rand_chacha]
version = "0.3"
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
"rustls-tls",
]
default-features = false
[dependencies.rustls-pemfile]
version = "2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.specta]
version = "=2.0.0-rc.20"
features = [
"derive",
"serde",
"serde_json",
]
optional = true
default-features = false
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio",
"sqlite",
"macros",
"migrate",
"json",
"chrono",
]
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.41"
features = [
"macros",
"rt-multi-thread",
"net",
"io-util",
"sync",
"time",
"fs",
"signal",
]
[dependencies.tokio-rustls]
version = "0.26"
features = [
"tls12",
"ring",
]
optional = true
default-features = false
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.tokio-util]
version = "0.7"
features = [
"codec",
"io",
"rt",
]
[dependencies.tower]
version = "0.5"
[dependencies.tower-http]
version = "0.6"
features = [
"trace",
"cors",
"limit",
"timeout",
"auth",
]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.11"
features = [
"v4",
"serde",
]
[dev-dependencies.rcgen]
version = "0.13"
[dev-dependencies.reqwest]
version = "0.12"
features = [
"json",
"stream",
"rustls-tls",
]
default-features = false
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1.41"
features = [
"macros",
"rt-multi-thread",
"net",
"io-util",
"sync",
"time",
"fs",
"signal",
"test-util",
"process",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]