# 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"
rust-version = "1.80"
name = "nexo-plugin-email"
version = "0.5.2"
authors = ["Cristian García <informacion@cristiangarcia.co>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Email (IMAP/SMTP) channel plugin for Nexo agents (out-of-tree subprocess)."
readme = "README.md"
keywords = [
    "nexo",
    "plugin",
    "email",
    "imap",
    "smtp",
]
categories = [
    "api-bindings",
    "email",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lordmacu/nexo-plugin-email"

[features]
default = []
embedded = []

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

[[bin]]
name = "nexo-plugin-email"
path = "src/main.rs"

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.async-imap]
version = "0.10"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.chardetng]
version = "0.1"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.dashmap]
version = "6"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

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

[dependencies.html2text]
version = "0.13"

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

[dependencies.mail-builder]
version = "0.4"

[dependencies.mail-parser]
version = "0.9"

[dependencies.mime_guess]
version = "2"

[dependencies.nexo-auth]
version = "0.1.5"

[dependencies.nexo-broker]
version = "0.1.4"

[dependencies.nexo-config]
version = "0.1.8"

[dependencies.nexo-core]
version = "0.1.2"

[dependencies.nexo-llm]
version = "0.1.3"

[dependencies.nexo-microapp-sdk]
version = "0.1.17"
features = ["plugin"]

[dependencies.nexo-plugin-manifest]
version = "0.1.5"

[dependencies.nexo-resilience]
version = "0.1.1"

[dependencies.once_cell]
version = "1"

[dependencies.rand]
version = "0.8"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
    "logging",
]
default-features = false

[dependencies.rustls-native-certs]
version = "0.7"

[dependencies.secrecy]
version = "0.8"

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.5"

[dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio-rustls",
    "sqlite",
    "macros",
    "chrono",
    "uuid",
]
default-features = false

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "io-util",
    "time",
    "process",
    "net",
]

[dependencies.tokio-rustls]
version = "0.26"
features = [
    "ring",
    "tls12",
    "logging",
]
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = [
    "compat",
    "io",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.serde_yaml]
version = "0.9"

[dev-dependencies.serial_test]
version = "3"

[dev-dependencies.tempfile]
version = "3"

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

[lints.clippy]
doc_lazy_continuation = "allow"
doc_overindented_list_items = "allow"
incompatible_msrv = "allow"

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"
