From c7ffe0f40b85049657f91ef8ee6cf955a989aaca Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Tue, 15 Aug 2023 21:11:53 +0200 Subject: [PATCH] Release 0.7.0 --- Cargo.toml | 2 +- README.md | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f81b50f..85aa093 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index 823ee0f..9d38546 100644 --- a/README.md +++ b/README.md @@ -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 :