system-idle-time 1.0.4

A cross-platform Rust library for getting the last user input on the system.
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 = "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",
]