Update adb_client, now with usb lib being a feature flag

This update also fixes libusb throwing timeouts when it shouldn't
This commit is contained in:
Sashanoraa
2025-05-14 22:52:21 -04:00
committed by Cooper Quintin
parent fbce9c8b04
commit ec5bd81a70
2 changed files with 10 additions and 3 deletions
+9 -2
View File
@@ -22,9 +22,16 @@ tokio = { version = "1.44.2", features = ["full"] }
tokio-retry2 = "0.5.7"
tokio-stream = "0.1.17"
[dependencies.adb_client]
[target.'cfg(target_os = "linux")'.dependencies.adb_client]
# path = "../../adb_client/adb_client"
git = "https://github.com/gaykitty/adb_client.git"
branch = "rayhunter"
default-features = false
features = ["usb"]
features = ["trans-nusb"]
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies.adb_client]
# path = "../../adb_client/adb_client"
git = "https://github.com/gaykitty/adb_client.git"
branch = "rayhunter"
default-features = false
features = ["trans-libusb"]