[dependencies.blocking]
optional = true
version = "1.6.1"
[dependencies.cfg-if]
version = "1.0.0"
[dependencies.futures]
optional = true
version = "0.3.30"
[dependencies.itertools]
version = "0.14.0"
[dependencies.thiserror]
version = "2.0.12"
[[example]]
name = "list_displays_async"
path = "examples/list_displays_async.rs"
required-features = ["async"]
[[example]]
name = "set_brightness_async"
path = "examples/set_brightness_async.rs"
required-features = ["async"]
[[example]]
name = "set_brightness_blocking"
path = "examples/set_brightness_blocking.rs"
[features]
async = ["futures", "blocking"]
default = ["async"]
[lib]
name = "brightness"
path = "src/lib.rs"
[package]
authors = ["Stephane Raux <stephaneyfx@gmail.com>", "Contributors"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "Get and set display brightness"
documentation = "https://docs.rs/brightness"
edition = "2024"
homepage = "https://github.com/stephaneyfx/brightness"
keywords = ["brightness", "backlight"]
license = "0BSD"
name = "brightness"
readme = "README.md"
repository = "https://github.com/stephaneyfx/brightness.git"
version = "0.7.0"
[package.metadata.docs.rs]
all-features = true
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.8.0"
[target."cfg(windows)".dependencies.windows]
features = ["Win32_Foundation", "Win32_Devices_Display", "Win32_Graphics_Gdi", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_IO", "Win32_UI_WindowsAndMessaging", "Win32_System_SystemServices"]
version = "0.61.3"