[package]
edition = "2024"
name = "system-idle-time"
version = "1.0.4"
authors = ["SpikeHD"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cross-platform Rust library for getting the last user input on the system."
readme = "README.md"
keywords = [
"system",
"idle",
"time",
"cross-platform",
]
license = "MIT"
repository = "https://github.com/SpikeHD/system-idle-time"
[features]
default = [
"x11",
"wayland",
]
wayland = [
"dep:zbus",
"dep:serde",
]
x11 = ["dep:x11rb"]
[lib]
name = "system_idle_time"
path = "src/lib.rs"
[[example]]
name = "per-second"
path = "examples/per-second.rs"
[target.'cfg(target_os = "linux")'.dependencies.serde]
version = "1.0"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.x11rb]
version = "0.13"
features = ["screensaver"]
optional = true
[target.'cfg(target_os = "linux")'.dependencies.zbus]
version = "5.12"
optional = true
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.10"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_System_SystemInformation",
"Win32_UI_Input_KeyboardAndMouse",
]