Release 0.7.0

This commit is contained in:
LIAUD Corentin
2023-08-15 21:11:53 +02:00
parent fff8bd0c20
commit c7ffe0f40b
2 changed files with 12 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ license = "MIT"
name = "adb_client"
readme = "README.md"
repository = "https://github.com/cocool97/adb_client"
version = "0.6.0"
version = "0.7.0"
[lib]
name = "adb_client"

View File

@@ -38,6 +38,17 @@ let mut connexion = AdbTcpConnexion::new(Ipv4Addr::from([127,0,0,1]), 5037).unwr
connexion.devices();
```
### Push a file to the device
```rust
use adb_client::AdbTcpConnexion;
use std::net::Ipv4Addr;
let mut connexion = AdbTcpConnexion::new(Ipv4Addr::from([127,0,0,1]), 5037).unwrap();
let mut input = File::open(Path::new(&filename)).unwrap();
connexion.send(None, &mut input, &path)?;
```
## Rust binary
This crate also provides a lightweight binary based on the `adb_client` crate. You can install it by running the following command :