keep-active 0.2.0

Keep your computer awake and active
Documentation
# 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"
rust-version = "1.84"
name = "keep-active"
version = "0.2.0"
authors = ["Ömer Üstün <omerbustun@gmail.com>"]
build = "build.rs"
exclude = ["/tools/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Keep your computer awake and active"
readme = "README.md"
keywords = [
    "idle",
    "sleep",
    "power-management",
    "status-trackers",
    "systemd-inhibit",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/omerbustun/keep-active/"

[features]
activity = ["dep:enigo"]
bin = [
    "dep:anyhow",
    "dep:clap",
    "dep:clap_complete",
    "dep:ctrlc",
    "dep:shadow-rs",
    "dep:sysinfo",
    "dep:winresource",
    "activity",
]

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

[[bin]]
name = "keep-active"
path = "src/main.rs"
required-features = ["bin"]

[dependencies.anyhow]
version = "1.0.65"
optional = true

[dependencies.cfg-if]
version = "1.0.0"

[dependencies.clap]
version = "4.0.2"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4.0.2"
optional = true

[dependencies.ctrlc]
version = "3.2.3"
features = ["termination"]
optional = true

[dependencies.derive_builder]
version = "0.20.2"

[dependencies.enigo]
version = "0.6.1"
optional = true

[dependencies.shadow-rs]
version = "1.4.0"
optional = true

[dependencies.sysinfo]
version = "0.37.2"
optional = true

[dependencies.thiserror]
version = "2.0.11"

[build-dependencies.shadow-rs]
version = "1.4.0"
optional = true

[build-dependencies.winresource]
version = "0.1.17"
optional = true

[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.3.0"

[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
features = ["CFString"]

[target.'cfg(target_os = "macos")'.dependencies.objc2-io-kit]
version = "0.3.2"
features = ["pwr_mgt"]

[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = ["Win32_System_Power"]

[profile.release]
lto = "thin"
strip = true