[package]
edition = "2021"
name = "hid_monitor"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform Rust library for monitoring HID device plug/unplug events and enumerating current HID devices. Supports Windows and macOS."
readme = "README.md"
keywords = [
"hid",
"monitor",
"plug",
"watcher",
"hidmonitor",
]
categories = [
"hardware-support",
"os::windows-apis",
"os::macos-apis",
]
license = "MIT"
repository = "https://github.com/XuNazgul/hid_monitor"
[lib]
name = "hid_monitor"
path = "src/lib.rs"
[[bin]]
name = "hid_monitor_example"
path = "src/main.rs"
[dependencies]
[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
version = "0.9"
[target.'cfg(target_os = "macos")'.dependencies.io-kit-sys]
version = "0.1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.58.0"
features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_Devices_HumanInterfaceDevice",
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_System_Threading",
"Win32_System_LibraryLoader",
"Win32_Graphics_Gdi",
]