From a8187bd2cdd3e17485d0b76beacad8023889284d Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Sun, 17 Nov 2024 18:07:24 +0100 Subject: [PATCH 1/3] chore: clarify licensing --- LICENSE | 2 +- README.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 8aa2645..ad996f1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) [year] [fullname] +Copyright (c) 2023-2024 Corentin LIAUD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a35cf55..6b7c2ee 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ dependency status + + dependency status +

From d7e35596e212abb336931c798592521b03dcfae3 Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Sun, 17 Nov 2024 18:11:42 +0100 Subject: [PATCH 2/3] fix: pub export AdbStatResponse --- adb_client/src/lib.rs | 2 +- adb_client/src/models/adb_stat_response.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/adb_client/src/lib.rs b/adb_client/src/lib.rs index ab8eca7..c3e0671 100644 --- a/adb_client/src/lib.rs +++ b/adb_client/src/lib.rs @@ -16,7 +16,7 @@ mod utils; pub use adb_device_ext::ADBDeviceExt; pub use error::{Result, RustADBError}; -pub use models::{AdbVersion, DeviceLong, DeviceShort, DeviceState, RebootType}; +pub use models::{AdbStatResponse, AdbVersion, DeviceLong, DeviceShort, DeviceState, RebootType}; pub use server::*; pub use transports::*; pub use usb::ADBUSBDevice; diff --git a/adb_client/src/models/adb_stat_response.rs b/adb_client/src/models/adb_stat_response.rs index 455aa35..9a1f3c4 100644 --- a/adb_client/src/models/adb_stat_response.rs +++ b/adb_client/src/models/adb_stat_response.rs @@ -8,10 +8,14 @@ use std::{ use byteorder::LittleEndian; use serde::{Deserialize, Serialize}; +/// Represents a `stat` response #[derive(Debug, Deserialize, Serialize)] pub struct AdbStatResponse { + /// File permissions pub file_perm: u32, + /// File size, in bytes pub file_size: u32, + /// File modification time pub mod_time: u32, } From 9ebb85f5d31485714b7d57a6b8a2c85cd90c040e Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Sun, 17 Nov 2024 18:13:26 +0100 Subject: [PATCH 3/3] chore: version 2.0.4 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index db324d3..a75bd0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ homepage = "https://github.com/cocool97/adb_client" keywords = ["adb", "android", "tcp", "usb"] license = "MIT" repository = "https://github.com/cocool97/adb_client" -version = "2.0.3" +version = "2.0.4" # To build locally when working on a new release [patch.crates-io]