-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
53 lines (46 loc) · 1.36 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[package]
name = "brightness"
version = "0.5.0"
authors = ["Stephane Raux <[email protected]>", "Contributors"]
edition = "2018"
description = "Get and set display brightness"
license = "0BSD"
homepage = "https://github.com/stephaneyfx/brightness"
repository = "https://github.com/stephaneyfx/brightness.git"
documentation = "https://docs.rs/brightness"
keywords = ["brightness", "backlight"]
[features]
async = ["async-trait", "futures", "blocking"]
default = ["async"]
[dependencies]
async-trait = { version = "0.1.57", optional = true }
blocking = { version = "1.2.0", optional = true }
cfg-if = "1.0.0"
futures = { version = "0.3.24", optional = true }
itertools = "0.10.3"
thiserror = "1.0.34"
[target.'cfg(target_os = "linux")'.dependencies]
zbus = "3.1.0"
[target.'cfg(windows)'.dependencies.windows]
version = "0.39.0"
features = [
"Win32_Foundation",
"Win32_Devices_Display",
"Win32_Graphics_Gdi",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_System_IO",
"Win32_UI_WindowsAndMessaging",
"Win32_System_SystemServices",
]
[[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"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"]