[package]
name = "br-addon"
version = "0.1.33"
edition = "2021"
authors = ["Carry <7991156@qq.com>"]
keywords = ["br", "addon"]
readme = "README.md"
license = "MIT"
exclude = ["INSTALL.md", "examples", "tests"]
description = "This is an addon"

[features]

mysql = ["br-db/db-mysql"]
sqlite = ["br-db/db-sqlite"]
mssql = ["br-db/db-mssql"]
pgsql = ["br-db/db-pgsql"]

cache = ["br-cache"]
kafka = ["br-kafka"]
email = ["br-email/smtp"]

default = ["mysql", "pgsql", "sqlite", "mssql", "email", "cache", "kafka"]

[dependencies]
log = "0.4"
json = "0.12"
lazy_static = "1.5"
serde = { version = "1.0", features = ["derive"] }

br-email = { version = "1.2.11", default-features = false, optional = true }
br-fields = "2.1.23"
br-db = { version = "1.8.34", default-features = false, optional = true }
br-cache = { version = "0.3.21", default-features = false, optional = true }
br-kafka = { version = "0.3.2", default-features = false, optional = true }

#br-fields = { path = "../br-fields" }
#br-db = { path = "../br-db", default-features = false, optional = true }
#br-cache = { path = "../br-cache", default-features = false, optional = true }
#br-kafka = { path = "../br-kafka", default-features = false, optional = true }
#br-email = { path = "../br-email", default-features = false, optional = true, features = ["smtp"] }

[dev-dependencies]
env_logger = "0.11"
br-web-server = { path = "../br-web-server" }
chrono = "0.4"