botlib/Cargo.toml
Rodrigo Rodriguez 84e8f1fe3a feat(i18n): Make i18n default feature and always use embedded assets
- Add i18n to default features in Cargo.toml
- Modify I18nBundle::load() to always use embedded assets when i18n feature is enabled
- Remove confusing warning about "locales directory not found"
- Locales are now embedded via rust-embed by default

Fixes issue where translations showed placeholders like [nav-chat] instead of actual text.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-14 17:35:12 +00:00

44 lines
1.3 KiB
TOML

[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"
keywords = ["bot", "chatbot", "ai", "conversational", "library"]
categories = ["api-bindings", "web-programming"]
[features]
default = ["database", "i18n"]
full = ["database", "http-client", "validation", "resilience", "i18n"]
database = ["i18n"]
http-client = ["dep:reqwest"]
validation = []
resilience = []
i18n = ["dep:rust-embed"]
[dependencies]
# Core
anyhow = { workspace = true }
thiserror = { workspace = true }
log = { workspace = true }
env_logger = { workspace = true }
chrono = { workspace = true, features = ["serde", "clock"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
uuid = { workspace = true, features = ["serde", "v4"] }
toml = { workspace = true }
tokio = { workspace = true, features = ["sync", "time"] }
# Optional: HTTP Client
reqwest = { workspace = true, features = ["json", "rustls-tls"], optional = true }
# Optional: i18n
rust-embed = { workspace = true, optional = true }
[dev-dependencies]
tokio = { workspace = true, features = ["rt", "macros"] }
[lints]
workspace = true