This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
forked from segevfiner/keepawake-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
51 lines (43 loc) · 1.44 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
[package]
name = "keep-active"
version = "0.1.0"
authors = ["Ömer Üstün <omerbustun@gmail.com>"]
edition = "2021"
rust-version = "1.74"
description = "Keep your computer awake and active"
repository = "https://github.com/omerbustun/keep-active/"
license = "MIT"
keywords = ["idle", "sleep", "power-management", "status-trackers", "systemd-inhibit"]
categories = ["command-line-utilities"]
exclude = ["/tools/"]
[features]
bin = ["dep:clap", "dep:clap_complete", "dep:ctrlc", "dep:shadow-rs", "dep:sysinfo", "dep:winresource"]
[profile.release]
strip = true
lto = "thin"
[[bin]]
name = "keep-active"
required-features = ["bin"]
[dependencies]
anyhow = "1.0.65"
cfg-if = "1.0.0"
clap = { version = "4.0.2", features = ["derive"], optional = true }
clap_complete = { version = "4.0.2", optional = true }
ctrlc = { version = "3.2.3", features = ["termination"], optional = true }
enigo = "0.1.3"
derive_builder = "0.12.0"
shadow-rs = { version = "0.26.1", optional = true }
sysinfo = { version = "0.30.5", optional = true }
[target.'cfg(windows)'.dependencies.windows]
version = "0.52.0"
features = [
"Win32_System_Power"
]
[target.'cfg(target_os = "linux")'.dependencies]
zbus = "3.5.0"
[target.'cfg(target_os = "macos")'.dependencies]
apple-sys = { version = "0.2.0", features = ["CoreFoundation", "IOKit"] }
core-foundation = "0.9.3"
[build-dependencies]
shadow-rs = { version = "0.26.1", optional = true }
winresource = { version = "0.1.17", optional = true }