[package]
edition = "2021"
name = "hidapi"
version = "2.6.5"
authors = [
"Roland Ruckerbauer <mail@ruabmbua.dev>",
"Osspial <osspial@gmail.com>",
"Artyom Pavlov <newpavlov@gmail.com>",
"mberndt123",
"niklasad1",
"Stefan Kerkmann",
]
build = "build.rs"
links = "hidapi"
include = [
"README.md",
"LICENSE.txt",
"build.rs",
"/src",
"/etc/hidapi/CMakeLists.txt",
"/etc/hidapi/LICENSE*",
"/etc/hidapi/VERSION",
"/etc/hidapi/hidapi",
"/etc/hidapi/libusb",
"/etc/hidapi/src",
"/etc/hidapi/udev",
"/etc/hidapi/linux/CMakeLists.txt",
"/etc/hidapi/linux/*.c",
"/etc/hidapi/linux/*.h",
"/etc/hidapi/mac/CMakeLists.txt",
"/etc/hidapi/mac/*.c",
"/etc/hidapi/mac/*.h",
"/etc/hidapi/windows/CMakeLists.txt",
"/etc/hidapi/windows/*.c",
"/etc/hidapi/windows/*.h",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust-y wrapper around hidapi"
documentation = "https://docs.rs/hidapi"
readme = "README.md"
keywords = [
"hid",
"api",
"usb",
"binding",
"wrapper",
]
license = "MIT"
repository = "https://github.com/ruabmbua/hidapi-rs"
[package.metadata.docs.rs]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"linux-static-hidraw",
"illumos-static-libusb",
]
illumos-shared-libusb = []
illumos-static-libusb = []
linux-native = [
"dep:udev",
"dep:nix",
]
linux-native-basic-udev = [
"dep:basic-udev",
"dep:nix",
]
linux-shared-hidraw = []
linux-shared-libusb = []
linux-static-hidraw = []
linux-static-libusb = []
macos-shared-device = []
windows-native = [
"windows-sys/Win32_Devices_DeviceAndDriverInstallation",
"windows-sys/Win32_Devices_HumanInterfaceDevice",
"windows-sys/Win32_Devices_Properties",
"windows-sys/Win32_Security",
"windows-sys/Win32_Storage_FileSystem",
"windows-sys/Win32_System_IO",
"windows-sys/Win32_System_Threading",
"windows-sys/Win32_UI_Shell_PropertiesSystem",
]
[lib]
name = "hidapi"
path = "src/lib.rs"
[dependencies.cfg-if]
version = "1"
[dependencies.libc]
version = "0.2"
[build-dependencies.cc]
version = "1.2"
[build-dependencies.pkg-config]
version = "0.3"
[target.'cfg(target_os = "linux")'.dependencies.basic-udev]
version = "0.1"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.30"
features = [
"fs",
"ioctl",
"poll",
]
optional = true
[target.'cfg(target_os = "linux")'.dependencies.udev]
version = "0.9"
optional = true
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = ["Win32_Foundation"]