[package]
name = "temperlux"
version = "1.6.0"
edition = "2021"
description = "Brightness controller for external (DDC/CI) and internal (backlight) displays"
license = "GPL-3.0-or-later"
authors = ["RhoMancer"]
repository = "https://github.com/RhoMancer/temperlux"
homepage = "https://github.com/RhoMancer/temperlux"
readme = "README.md"
keywords = ["ddc", "brightness", "monitor", "display", "gtk"]
categories = ["command-line-utilities", "hardware-support", "gui"]

[features]
default = ["cli"]
cli = []
gui = ["gtk4", "libadwaita"]
hw-test = []  # Hardware-in-the-loop tests (real monitors, I2C access required)

[dependencies]
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
anyhow = "1"
thiserror = "2"
log = "0.4"
env_logger = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dirs = "6"
urlencoding = "2"
chrono = "0.4"
uuid = { version = "1", features = ["v4"] }

# GUI dependencies (feature-gated)
gtk4 = { version = "0.11", optional = true }
libadwaita = { version = "0.9", optional = true, features = ["v1_2"] }
angus-colors = "0.1"

[dev-dependencies]
tempfile = "3"
assert_cmd = "2"
predicates = "3"

[[bin]]
name = "temperlux"
path = "src/main.rs"

[[bin]]
name = "temperlux-gui"
path = "src/bin/gui.rs"
required-features = ["gui"]

[[bin]]
name = "ddc-diag"
path = "src/bin/ddc-diag.rs"
