[package]
name = "kigi-system-power"
version.workspace = true
edition.workspace = true
license = "Apache-2.0"
description = "Cross-platform system sleep/wake (suspend) notifications — used to defer work across a suspend boundary"

[dependencies]

[target.'cfg(target_os = "linux")'.dependencies]
zbus = { workspace = true }

[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.59", features = [
    "Win32_Foundation",
    "Win32_System_Power",
    # Provides REGISTER_NOTIFICATION_FLAGS / DEVICE_NOTIFY_CALLBACK and gates
    # PowerRegisterSuspendResumeNotification (its flags param lives here).
    "Win32_UI_WindowsAndMessaging",
] }

[lints]
workspace = true
