[package]
edition = "2021"
name = "async-hid"
version = "0.5.1"
authors = ["sidit77"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A async library for interacting with HID devices"
readme = "README.md"
keywords = [
"hid",
"usb",
"async",
"wrapper",
]
categories = [
"api-bindings",
"asynchronous",
"hardware-support",
]
license = "MIT"
repository = "https://github.com/sidit77/async-hid"
[features]
async-io = ["dep:async-io"]
default = [
"async-io",
"win32",
]
tokio = ["dep:tokio"]
win32 = [
"dep:atomic-waker",
"dep:crossbeam-queue",
]
winrt = [
"dep:windows-future",
"dep:once_cell",
"dep:async-channel",
]
[lib]
name = "async_hid"
path = "src/lib.rs"
[[example]]
name = "enumerate_devices"
path = "examples/enumerate_devices.rs"
[[example]]
name = "open_device"
path = "examples/open_device.rs"
[[example]]
name = "read_ds4_callibration"
path = "examples/read_ds4_callibration.rs"
[[example]]
name = "read_feature_report"
path = "examples/read_feature_report.rs"
[[example]]
name = "read_with_timeout"
path = "examples/read_with_timeout.rs"
[[example]]
name = "read_write"
path = "examples/read_write.rs"
[[example]]
name = "watch_devices"
path = "examples/watch_devices.rs"
[[example]]
name = "write_feature_report"
path = "examples/write_feature_report.rs"
[dependencies.futures-lite]
version = "2.5"
[dependencies.log]
version = "0.4"
[dependencies.static_assertions]
version = "1.1"
[dev-dependencies.async-io]
version = "2.4.0"
[dev-dependencies.futures-lite]
version = "2.5.0"
[dev-dependencies.pollster]
version = "0.4.0"
features = ["macro"]
[dev-dependencies.simple_logger]
version = "5"
[target.'cfg(target_os = "linux")'.dependencies.async-io]
version = "2"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.29.0"
features = [
"fs",
"ioctl",
"socket",
]
[target.'cfg(target_os = "linux")'.dependencies.tokio]
version = "1"
features = ["net"]
optional = true
[target.'cfg(target_os = "macos")'.dependencies.atomic-waker]
version = "1.1.2"
[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6.1"
[target.'cfg(target_os = "macos")'.dependencies.crossbeam-queue]
version = "0.3.12"
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3.0"
[target.'cfg(target_os = "macos")'.dependencies.objc2-core-foundation]
version = "0.3.2"
[target.'cfg(target_os = "macos")'.dependencies.objc2-io-kit]
version = "0.3.2"
[target.'cfg(target_os = "windows")'.dependencies.async-channel]
version = "2.3.1"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.atomic-waker]
version = "1.1.2"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.crossbeam-queue]
version = "0.3.12"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.once_cell]
version = "1.21.3"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.61.1"
features = [
"Devices_Enumeration",
"Devices_HumanInterfaceDevice",
"Foundation",
"Foundation_Collections",
"Storage",
"Storage_Streams",
"Win32_System_WinRT",
"Win32_Devices_HumanInterfaceDevice",
"Win32_Foundation",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Threading",
"Win32_Devices_DeviceAndDriverInstallation",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-future]
version = "0.2.0"
optional = true