# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

[features]
cli = []
default = ["cli"]
gui = [
    "gtk4",
    "libadwaita",
]
hw-test = []

[lib]
name = "temperlux"
path = "src/lib.rs"

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

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

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

[[test]]
name = "provider_mock"
path = "tests/provider_mock.rs"

[[test]]
name = "test_ddc_hardware"
path = "tests/test_ddc_hardware.rs"

[[test]]
name = "test_manager"
path = "tests/test_manager.rs"

[[test]]
name = "test_perf"
path = "tests/test_perf.rs"

[[test]]
name = "test_schedule_cli"
path = "tests/test_schedule_cli.rs"

[[test]]
name = "test_settings"
path = "tests/test_settings.rs"

[dependencies.angus-colors]
version = "0.1"

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.clap_complete]
version = "4"

[dependencies.dirs]
version = "6"

[dependencies.env_logger]
version = "0.11"

[dependencies.gtk4]
version = "0.11"
optional = true

[dependencies.libadwaita]
version = "0.9"
features = ["v1_2"]
optional = true

[dependencies.log]
version = "0.4"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.urlencoding]
version = "2"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.tempfile]
version = "3"
