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

2
Cargo.lock generated
View File

@@ -5,7 +5,7 @@ version = 4
[[package]]
name = "adb_client"
version = "2.1.11"
source = "git+https://github.com/gaykitty/adb_client.git?branch=rayhunter#5bc41626cc7f57b6757ec981c14f3d37ff067f60"
source = "git+https://github.com/gaykitty/adb_client.git?branch=rayhunter#6a8054f0e04be9d669e06631e23882e6403d6e1e"
dependencies = [
"async-io",
"base64",

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"]