[package]
edition = "2021"
name = "hidra"
version = "0.0.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust HID library."
readme = "README.md"
keywords = [
"hid",
"hidapi",
"usb",
"webhid",
"hidraw",
]
categories = [
"hardware-support",
"api-bindings",
"wasm",
]
license = "MIT"
repository = "https://github.com/carlossless/hidra"
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
rustc-args = ["--cfg=web_sys_unstable_apis"]
rustdoc-args = ["--cfg=web_sys_unstable_apis"]
[features]
default = []
nusb = ["dep:nusb"]
[lib]
name = "hidra"
path = "src/lib.rs"
[[example]]
name = "enumerate"
path = "examples/enumerate.rs"
[[example]]
name = "read_async"
path = "examples/read_async.rs"
[[example]]
name = "read_input"
path = "examples/read_input.rs"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.nusb]
version = "0.2.3"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.100"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.123"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.73"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.100"
features = [
"Window",
"Navigator",
"DomException",
"Event",
"EventTarget",
"Hid",
"HidDevice",
"HidDeviceFilter",
"HidDeviceRequestOptions",
"HidConnectionEvent",
"HidInputReportEvent",
"HidCollectionInfo",
"HidReportInfo",
"HidReportItem",
"HidUnitSystem",
]
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
version = "0.8"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_Devices_DeviceAndDriverInstallation",
"Win32_Devices_HumanInterfaceDevice",
"Win32_Devices_Properties",
"Win32_Storage_FileSystem",
"Win32_Security",
"Win32_System_IO",
"Win32_System_Threading",
"Win32_UI_Shell_PropertiesSystem",
]