| Crates.io | adb_client |
| lib.rs | adb_client |
| version | 3.0.1 |
| created_at | 2022-01-05 10:08:23.355008+00 |
| updated_at | 2026-01-02 11:02:08.404405+00 |
| description | Rust ADB (Android Debug Bridge) client library |
| homepage | |
| repository | https://github.com/cocool97/adb_client |
| max_upload_size | |
| id | 508307 |
| size | 258,590 |
adb_clientRust library implementing ADB protocol.
Add adb_client crate as a dependency by simply adding it to your Cargo.toml:
[dependencies]
adb_client = "*"
| Feature | Description | Default? |
|---|---|---|
mdns |
Enables mDNS device discovery on local network. | No |
usb |
Enables interactions with USB devices. | No |
To deactivate some default features you can use the default-features = false option in your Cargo.toml file and manually specify the features you want to activate:
[dependencies]
adb_client = { version = "*", default-features = false, features = ["mdns", "usb"] }
Usage examples can be found in the examples/ directory of this repository.
Some example are also provided in the various README.md files of modules.
Benchmarks run on v2.0.6, on a Samsung S10 SM-G973F device and an Intel i7-1265U CPU laptop
ADBServerDevice push vs adb pushADBServerDevice performs all operations by using adb server as a bridge.
| File size | Sample size | ADBServerDevice |
adb |
Difference |
|---|---|---|---|---|
| 10 MB | 100 | 350,79 ms | 356,30 ms | -1,57 % |
| 500 MB | 50 | 15,60 s | 15,64 s | -0,25 % |
| 1 GB | 20 | 31,09 s | 31,12 s | -0,10 % |