[package]
name = "br-email"
version = "0.1.37"
edition = "2021"
authors = ["Carryxd <7991156@qq.com>"]
keywords = ["email", "pop3", "smtp"]
readme = "README.md"
exclude = ["INSTALL.md", "config", "examples","Cargo.toml.temp"]
license = "MIT"
description = "This is an Email"

[features]
smtp = ["lettre"]
pop3 = ["rs-pop3", "openssl", "br-crypto"]
imaps = ["imap", "imap/rustls-tls"]
default = ["smtp", "pop3", "imaps"]

[dependencies]
json = "0.12.4"
log = "0.4.17"
lazy_static = "1.4.0"

# smtp
lettre = { version = "0.10.1", optional = true }

# pop3
rs-pop3 = { version = "1.0.8", optional = true }
openssl = { version = "0.10.47", optional = true }
br-crypto = { version = "0.1.14", default-features = false, features = ["br_hash", "br_base64", "br_qp", "br_jwt", "br_hex", "br_encoding", "br_pkey"], optional = true }

# imap
imap = { version = "3.0.0-alpha.10", optional = true }
chrono = "0.4.26"
br-file = "0.0.1"
[dev-dependencies]
env_logger = "0.10.0"