[package]
name = "tools-tui-shared"
version = "0.1.0"
edition = "2021"
authors = ["Tools Ecosystem"]
description = "Shared TUI utilities and widgets for Tools ecosystem using Ratatui"
license = "MIT"

[dependencies]
# RataTui Framework Stack
ratatui = "0.30.0-beta.0"       # Leading-edge beta with improvements
crossterm = "0.29"              # Terminal backend compatible with ratatui 0.30.0-beta.0
tui-textarea = "0.7"            # Multi-line text input with validation

# Async Runtime
tokio = { version = "1", features = ["full"] }

# Error Handling
anyhow = "1.0"
thiserror = "2.0"

# Serialization (required - used in config module)
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.9"

# Styling
colored = "3"

# Utilities
regex = "1.12"
uuid = { version = "1.18", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }

[dev-dependencies]
tempfile = "3.23"
tokio-test = "0.4"
proptest = "1.9"

[features]
default = []
# Feature flags for optional functionality
interactive = []
test-util = []

# Linting configuration
# Profile configurations are defined in the root workspace Cargo.toml

# Enable all lints from clippy
[lints.clippy]
all = "warn"
pedantic = "warn"
nursery = "warn"

# Rust lints
[lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
