botlib/Cargo.toml

42 lines
1.2 KiB
TOML
Raw Permalink Normal View History

2025-12-03 19:45:09 -03:00
[package]
name = "botlib"
version = "6.1.0"
edition = "2021"
description = "Shared library for General Bots - common types, utilities, and HTTP client"
license = "AGPL-3.0"
authors = ["Pragmatismo.com.br", "General Bots Community"]
repository = "https://github.com/GeneralBots/BotServer"
2025-12-21 23:40:41 -03:00
keywords = ["bot", "chatbot", "ai", "conversational", "library"]
categories = ["api-bindings", "web-programming"]
2025-12-03 19:45:09 -03:00
[features]
default = []
full = ["database", "http-client", "validation", "resilience", "i18n"]
2026-01-25 08:42:45 -03:00
database = []
2025-12-03 19:45:09 -03:00
http-client = ["dep:reqwest"]
2026-01-25 08:42:45 -03:00
validation = []
resilience = []
i18n = []
2025-12-03 19:45:09 -03:00
[dependencies]
# Core
2026-01-23 09:37:17 -03:00
anyhow = { workspace = true }
thiserror = { workspace = true }
log = { workspace = true }
env_logger = { workspace = true }
2026-01-24 22:06:07 -03:00
chrono = { workspace = true, features = ["serde", "clock"] }
2026-01-23 09:37:17 -03:00
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
uuid = { workspace = true, features = ["serde", "v4"] }
toml = { workspace = true }
tokio = { workspace = true, features = ["sync", "time"] }
2025-12-03 19:45:09 -03:00
# Optional: HTTP Client
2026-01-24 22:06:07 -03:00
reqwest = { workspace = true, features = ["json", "rustls-tls"], optional = true }
2025-12-03 19:45:09 -03:00
[dev-dependencies]
2026-01-23 09:37:17 -03:00
tokio = { workspace = true, features = ["rt", "macros"] }
2025-12-21 23:40:41 -03:00
2025-12-23 15:52:20 -03:00
[lints]
workspace = true