Skip to content

Commit 83db936

Browse files
Feyorshqdot
authored andcommitted
fix: unbreak hid on macOS
1 parent cfacbb8 commit 83db936

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

buttplug/Cargo.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,17 @@ prost-build = "0.13.4"
114114
rusty-xinput = "1.3.0"
115115
windows = { version = "0.57.0", features = ["Devices_Bluetooth", "Foundation"] }
116116
serialport = { version = "4.6.1", optional = true }
117-
# Linux hidraw is needed here in order to work with the lovense dongle. libusb breaks it on linux.
118-
# Other platforms are not affected by the feature changes.
119-
hidapi = { version = "2.6.3", default-features = false, features = ["linux-static-hidraw", "illumos-static-libusb"], optional = true }
117+
hidapi = { version = "2.6.3", default-features = false, features = ["windows-native"], optional = true }
120118

121119
[target.'cfg(target_os = "linux")'.dependencies]
122120
serialport = { version = "4.6.1", optional = true }
123121
# Linux hidraw is needed here in order to work with the lovense dongle. libusb breaks it on linux.
124122
# Other platforms are not affected by the feature changes.
125-
hidapi = { version = "2.6.3", default-features = false, features = ["linux-static-hidraw", "illumos-static-libusb"], optional = true }
123+
hidapi = { version = "2.6.3", default-features = false, features = ["linux-static-hidraw"], optional = true }
126124

127125
[target.'cfg(target_os = "macos")'.dependencies]
128126
serialport = { version = "4.6.1", optional = true }
129-
# Linux hidraw is needed here in order to work with the lovense dongle. libusb breaks it on linux.
130-
# Other platforms are not affected by the feature changes.
131-
hidapi = { version = "2.6.3", default-features = false, features = ["linux-static-hidraw", "illumos-static-libusb"], optional = true }
127+
hidapi = { version = "2.6.3", default-features = false, features = ["macos-shared-device"], optional = true }
132128

133129
[target.wasm32-unknown-unknown.dependencies]
134130
wasm-bindgen = { version = "0.2.99", features = ["serde-serialize"] }

0 commit comments

Comments
 (0)