forked from ruabmbua/hidapi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
82 lines (76 loc) · 2.2 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "hidapi"
version = "2.6.2"
authors = [
"Roland Ruckerbauer <[email protected]>",
"Osspial <[email protected]>",
"Artyom Pavlov <[email protected]>",
"mberndt123",
"niklasad1",
"Stefan Kerkmann"
]
repository = "https://github.com/ruabmbua/hidapi-rs"
description = "Rust-y wrapper around hidapi"
license = "MIT"
keywords = ["hid", "api", "usb", "binding", "wrapper"]
build = "build.rs"
links = "hidapi"
documentation = "https://docs.rs/hidapi"
edition = "2021"
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",
# Platform support files
"/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",
]
[features]
default = ["linux-static-hidraw", "illumos-static-libusb"]
linux-static-libusb = []
linux-static-hidraw = []
linux-shared-libusb = []
linux-shared-hidraw = []
linux-native = ["dep:udev", "dep:nix"]
illumos-static-libusb = []
illumos-shared-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_EnhancedStorage",
"windows-sys/Win32_Storage_FileSystem",
"windows-sys/Win32_System_IO",
"windows-sys/Win32_System_Threading",
"windows-sys/Win32_UI_Shell_PropertiesSystem"
]
[dependencies]
libc = "0.2"
cfg-if = "1"
[target.'cfg(target_os = "linux")'.dependencies]
udev = { version = "0.8", optional = true }
nix = { version = "0.27", optional = true, features = ["fs", "ioctl", "poll"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.48", features = ["Win32_Foundation"] }
[build-dependencies]
cc = "1.0"
pkg-config = "0.3"
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]