[badges.circle-ci]
branch = "main"
repository = "BenjaminBrienen/user-idle-time"
[dependencies.anyhow]
version = "1.0.97"
[features]
default = ["x11"]
[lib]
name = "user_idle_time"
path = "src/lib.rs"
[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
blanket_clippy_restriction_lints = "allow"
else_if_without_else = "allow"
float_arithmetic = "allow"
implicit_return = "allow"
items_after_statements = "allow"
missing_trait_methods = "allow"
pub_use = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
self_named_module_files = "allow"
semicolon_outside_block = "allow"
separated_literal_suffix = "allow"
shadow_reuse = "allow"
shadow_unrelated = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "allow"
[lints.clippy.cargo]
level = "warn"
priority = -2
[lints.clippy.complexity]
level = "warn"
priority = -2
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -2
[lints.clippy.pedantic]
level = "warn"
priority = -2
[lints.clippy.perf]
level = "warn"
priority = -2
[lints.clippy.restriction]
level = "warn"
priority = -2
[lints.clippy.style]
level = "warn"
priority = -2
[lints.clippy.suspicious]
level = "warn"
priority = -2
[lints.rust.deprecated-safe]
level = "deny"
priority = -1
[lints.rust.future-incompatible]
level = "deny"
priority = -1
[lints.rust.keyword-idents]
level = "deny"
priority = -1
[lints.rust.let-underscore]
level = "deny"
priority = -1
[lints.rust.nonstandard-style]
level = "deny"
priority = -1
[lints.rust.refining-impl-trait]
level = "deny"
priority = -1
[lints.rust.rust-2018-compatibility]
level = "deny"
priority = -1
[lints.rust.rust-2018-idioms]
level = "deny"
priority = -1
[lints.rust.rust-2021-compatibility]
level = "deny"
priority = -1
[lints.rust.rust-2024-compatibility]
level = "deny"
priority = -1
[lints.rust.unused]
level = "allow"
priority = 1
[lints.rust.warnings]
level = "warn"
priority = -2
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["date-and-time"]
description = "Get a user's idle time."
edition = "2024"
homepage = "https://github.com/BenjaminBrienen/user-idle-time"
keywords = ["idle", "user", "afk"]
license = "MIT OR Apache-2.0"
name = "user-idle-time"
readme = "README.md"
repository = "https://github.com/BenjaminBrienen/user-idle-time"
resolver = "2"
rust-version = "1.85.1"
version = "0.7.0"
[package.metadata.docs.rs]
all-features = false
[target.'cfg(target_os = "linux")'.dependencies.dbus]
optional = true
version = "0.9.7"
[target.'cfg(target_os = "linux")'.dependencies.x11]
features = ["xlib", "xss"]
optional = true
version = "2.21.0"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
features = ["Win32_Foundation", "Win32_System_SystemInformation", "Win32_UI_Input_KeyboardAndMouse"]
version = "0.59.0"