# 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 = "himalaya"
version = "1.1.0"
authors = ["soywod <clement.douin@posteo.net>"]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI to manage emails"
homepage = "https://pimalaya.org/"
documentation = "https://github.com/pimalaya/himalaya/"
readme = "README.md"
keywords = [
    "cli",
    "email",
    "imap",
    "maildir",
    "smtp",
]
categories = [
    "command-line-utilities",
    "email",
]
license = "MIT"
repository = "https://github.com/pimalaya/himalaya/"

[package.metadata.docs.rs]
features = [
    "imap",
    "maildir",
    "smtp",
    "sendmail",
    "oauth2",
    "wizard",
    "pgp-commands",
    "pgp-native",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

[dependencies.ariadne]
version = "0.2"

[dependencies.clap]
version = "4.4"
features = [
    "derive",
    "env",
    "wrap_help",
]

[dependencies.clap_complete]
version = "4.4"

[dependencies.clap_mangen]
version = "0.2"

[dependencies.color-eyre]
version = "0.6"

[dependencies.email-lib]
version = "0.26"
features = [
    "tokio-rustls",
    "derive",
    "thread",
]
default-features = false

[dependencies.mml-lib]
version = "1"
features = [
    "compiler",
    "interpreter",
    "derive",
]
default-features = false

[dependencies.once_cell]
version = "1.16"

[dependencies.open]
version = "5.3"

[dependencies.pimalaya-tui]
version = "0.2"
features = [
    "rustls",
    "email",
    "path",
    "cli",
    "himalaya",
    "tracing",
    "sled",
]
default-features = false

[dependencies.secret-lib]
version = "1"
features = [
    "tokio",
    "rustls",
    "command",
    "derive",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.shellexpand-utils]
version = "=0.2.1"

[dependencies.tokio]
version = "1.23"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.2"

[dependencies.uuid]
version = "0.8"
features = ["v4"]

[dev-dependencies]

[build-dependencies.pimalaya-tui]
version = "0.2"
features = ["build-envs"]
default-features = false

[features]
default = [
    "imap",
    "maildir",
    "smtp",
    "sendmail",
    "wizard",
    "pgp-commands",
]
imap = [
    "email-lib/imap",
    "pimalaya-tui/imap",
]
keyring = [
    "email-lib/keyring",
    "pimalaya-tui/keyring",
    "secret-lib/keyring",
]
maildir = [
    "email-lib/maildir",
    "pimalaya-tui/maildir",
]
notmuch = [
    "email-lib/notmuch",
    "pimalaya-tui/notmuch",
]
oauth2 = [
    "email-lib/oauth2",
    "pimalaya-tui/oauth2",
    "keyring",
]
pgp-commands = [
    "email-lib/pgp-commands",
    "mml-lib/pgp-commands",
    "pimalaya-tui/pgp-commands",
]
pgp-gpg = [
    "email-lib/pgp-gpg",
    "mml-lib/pgp-gpg",
    "pimalaya-tui/pgp-gpg",
]
pgp-native = [
    "email-lib/pgp-native",
    "mml-lib/pgp-native",
    "pimalaya-tui/pgp-native",
]
sendmail = [
    "email-lib/sendmail",
    "pimalaya-tui/sendmail",
]
smtp = [
    "email-lib/smtp",
    "pimalaya-tui/smtp",
]
wizard = [
    "email-lib/autoconfig",
    "pimalaya-tui/wizard",
]