[package]
name = "lore-tui"
version = "0.1.0"
edition = "2024"
description = "Terminal UI for Gitlore — local GitLab data explorer"
authors = ["Taylor Eernisse"]
license = "MIT"

[[bin]]
name = "lore-tui"
path = "src/main.rs"

[dependencies]
# FrankenTUI (Elm-architecture TUI framework)
ftui = "0.1.1"

# Lore library (config, db, ingestion, search, etc.)
lore = { path = "../.." }

# CLI
clap = { version = "4", features = ["derive", "env"] }

# Error handling
anyhow = "1"

# Time
chrono = { version = "0.4", features = ["serde"] }

# Paths
dirs = "6"

# Database (read-only queries from TUI)
rusqlite = { version = "0.38", features = ["bundled"] }

# Terminal (crossterm for raw mode + event reading, used by ftui runtime)
crossterm = "0.28"

# Serialization (crash context NDJSON dumps)
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# Regex (used by safety module for PII/secret redaction)
regex = "1"

# Unicode text measurement
unicode-width = "0.2"
unicode-segmentation = "1"

# Session persistence (CRC32 checksum)
crc32fast = "1"

[dev-dependencies]
tempfile = "3"
