# 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"
rust-version = "1.85"
name = "mailrs-shield"
version = "1.0.0"
authors = ["GOLIA K.K."]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SMTP anti-spam primitives: DNS blocklist (DNSBL) queries, greylisting policy with optional Redis store, and PTR / forward-confirmed reverse DNS (FCrDNS) checks."
homepage = "https://github.com/goliajp/mailrs"
documentation = "https://docs.rs/mailrs-shield"
readme = "README.md"
keywords = [
    "smtp",
    "anti-spam",
    "dnsbl",
    "greylist",
    "fcrdns",
]
categories = [
    "email",
    "network-programming",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/goliajp/mailrs"
resolver = "2"

[features]
default = ["redis-store"]
redis-store = [
    "dep:redis",
    "dep:sqlx",
]

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

[[bench]]
name = "ops"
path = "benches/ops.rs"
harness = false

[dependencies.hickory-resolver]
version = "0.26"

[dependencies.redis]
version = "1"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "postgres",
    "macros",
    "chrono",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.7"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

[lints.clippy.all]
level = "deny"
priority = 0

[lints.rust]
warnings = "deny"
