# 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 = "imap-client"
version = "0.2.3"
authors = ["soywod <clement.douin@posteo.net>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library to manage IMAP clients"
homepage = "https://pimalaya.org/"
documentation = "https://github.com/pimalaya/imap-client/"
readme = "README.md"
keywords = [
    "email",
    "imap",
    "client",
]
categories = ["email"]
license = "MIT"
repository = "https://github.com/pimalaya/imap-client/"

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

[[example]]
name = "fetch"
path = "examples/fetch.rs"

[dependencies.imap-next]
version = "0.3"
features = [
    "tag_generator",
    "ext_id",
    "ext_metadata",
]

[dependencies.rip-starttls]
version = "0.1"
features = ["tokio"]
optional = true

[dependencies.rustls-platform-verifier]
version = "0.4"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.37"
features = [
    "io-util",
    "net",
    "time",
]
default-features = false

[dependencies.tokio-native-tls]
version = "0.3"
optional = true

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

[dependencies.tracing]
version = "0.1"

[dev-dependencies.async-std]
version = "1.13"
features = ["attributes"]

[dev-dependencies.static_assertions]
version = "1.1"

[dev-dependencies.tokio]
version = "1.37"
features = ["full"]

[features]
default = []
tokio-native-tls = [
    "dep:tokio-native-tls",
    "dep:rip-starttls",
]
tokio-rustls = [
    "dep:tokio-rustls",
    "dep:rip-starttls",
    "dep:rustls-platform-verifier",
]
vendored = ["tokio-native-tls?/vendored"]