Compare commits

..

25 Commits

Author SHA1 Message Date
e979f583df Merge pull request 'Update Rust crate clap to 4.5.48' () from renovate/clap-4.x into master 2025-09-21 00:39:17 +00:00
d6b71d78b5 Update Rust crate clap to 4.5.48 2025-09-20 00:35:30 +00:00
9c1331361b Merge pull request 'Update Rust crate log to 0.4.28' () from renovate/log-0.x into master 2025-09-05 00:21:16 +00:00
e661008ba3 Update Rust crate log to 0.4.28 2025-09-04 00:27:57 +00:00
715a89e130 Merge pull request 'Update Rust crate clap to 4.5.47' () from renovate/clap-4.x into master 2025-09-04 00:27:54 +00:00
3bbfb9c779 Update Rust crate clap to 4.5.47 2025-09-03 00:27:14 +00:00
0ad456949d Merge pull request 'Update Rust crate clap to 4.5.46' () from renovate/clap-4.x into master 2025-08-28 00:27:39 +00:00
02435e1a33 Update Rust crate clap to 4.5.46 2025-08-27 00:27:17 +00:00
babe785e04 Merge pull request 'Update Rust crate clap to 4.5.45' () from renovate/clap-4.x into master 2025-08-14 00:26:50 +00:00
c6e3743fc8 Update Rust crate clap to 4.5.45 2025-08-13 00:27:02 +00:00
d91d9291bb Merge pull request 'Update Rust crate clap to 4.5.43' () from renovate/clap-4.x into master 2025-08-08 00:14:47 +00:00
f1aa829804 Update Rust crate clap to 4.5.43 2025-08-07 00:14:37 +00:00
cd4bf65b40 Merge pull request 'Update Rust crate tokio to 1.47.1' () from renovate/tokio-1.x into master 2025-08-03 00:15:21 +00:00
124daba731 Update Rust crate tokio to 1.47.1 2025-08-02 00:16:07 +00:00
f943eb4167 Merge pull request 'Update Rust crate clap to 4.5.42' () from renovate/clap-4.x into master 2025-08-01 00:17:59 +00:00
37c88f1c8f Update Rust crate clap to 4.5.42 2025-07-31 00:14:01 +00:00
5c53a41e1c Merge pull request 'Update Rust crate tokio to 1.47.0' () from renovate/tokio-1.x into master 2025-07-27 00:15:37 +00:00
3e496a023d Update Rust crate tokio to 1.47.0 2025-07-27 00:15:35 +00:00
5e84119f51 Merge pull request 'Update Rust crate clap to 4.5.41' () from renovate/clap-4.x into master 2025-07-10 00:47:05 +00:00
373ecd3efe Update Rust crate clap to 4.5.41 2025-07-10 00:15:43 +00:00
7441ee5afe Merge pull request 'Update Rust crate tokio to 1.46.1' () from renovate/tokio-1.x into master 2025-07-05 00:42:31 +00:00
3dedcc4487 Update Rust crate tokio to 1.46.1 2025-07-05 00:08:50 +00:00
07c2721307 Update Rust crate tokio to 1.46.0 2025-07-04 00:08:45 +00:00
3861400145 Fix cargo clippy issues 2025-07-03 08:11:36 +02:00
0e263b211f Update Rust crate clap to 4.5.40 2025-06-10 00:21:54 +00:00
3 changed files with 45 additions and 22 deletions

55
Cargo.lock generated

@@ -130,7 +130,7 @@ dependencies = [
"futures-core", "futures-core",
"futures-util", "futures-util",
"mio", "mio",
"socket2", "socket2 0.5.9",
"tokio", "tokio",
"tracing", "tracing",
] ]
@@ -192,7 +192,7 @@ dependencies = [
"serde_json", "serde_json",
"serde_urlencoded", "serde_urlencoded",
"smallvec", "smallvec",
"socket2", "socket2 0.5.9",
"time", "time",
"tracing", "tracing",
"url", "url",
@@ -473,9 +473,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]] [[package]]
name = "clap" name = "clap"
version = "4.5.39" version = "4.5.48"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd60e63e9be68e5fb56422e397cf9baddded06dae1d2e523401542383bc72a9f" checksum = "e2134bb3ea021b78629caa971416385309e0131b351b25e01dc16fb54e1b5fae"
dependencies = [ dependencies = [
"clap_builder", "clap_builder",
"clap_derive", "clap_derive",
@@ -483,9 +483,9 @@ dependencies = [
[[package]] [[package]]
name = "clap_builder" name = "clap_builder"
version = "4.5.39" version = "4.5.48"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89cc6392a1f72bbeb820d71f32108f61fdaf18bc526e1d23954168a67759ef51" checksum = "c2ba64afa3c0a6df7fa517765e31314e983f51dda798ffba27b988194fb65dc9"
dependencies = [ dependencies = [
"anstream", "anstream",
"anstyle", "anstyle",
@@ -495,9 +495,9 @@ dependencies = [
[[package]] [[package]]
name = "clap_derive" name = "clap_derive"
version = "4.5.32" version = "4.5.47"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" checksum = "bbfd7eae0b0f1a6e63d4b13c9c478de77c2eb546fba158ad50b4203dc24b9f9c"
dependencies = [ dependencies = [
"heck", "heck",
"proc-macro2", "proc-macro2",
@@ -997,6 +997,17 @@ dependencies = [
"hashbrown", "hashbrown",
] ]
[[package]]
name = "io-uring"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b86e202f00093dcba4275d4636b93ef9dd75d025ae560d2521b45ea28ab49013"
dependencies = [
"bitflags",
"cfg-if",
"libc",
]
[[package]] [[package]]
name = "is_terminal_polyfill" name = "is_terminal_polyfill"
version = "1.70.1" version = "1.70.1"
@@ -1056,9 +1067,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.171" version = "0.2.174"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
[[package]] [[package]]
name = "libredox" name = "libredox"
@@ -1112,9 +1123,9 @@ dependencies = [
[[package]] [[package]]
name = "log" name = "log"
version = "0.4.27" version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
[[package]] [[package]]
name = "memchr" name = "memchr"
@@ -1477,6 +1488,16 @@ dependencies = [
"windows-sys 0.52.0", "windows-sys 0.52.0",
] ]
[[package]]
name = "socket2"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "233504af464074f9d066d7b5416c5f9b894a5862a6506e306f7b816cdd6f1807"
dependencies = [
"libc",
"windows-sys 0.59.0",
]
[[package]] [[package]]
name = "stable_deref_trait" name = "stable_deref_trait"
version = "1.2.0" version = "1.2.0"
@@ -1565,19 +1586,21 @@ dependencies = [
[[package]] [[package]]
name = "tokio" name = "tokio"
version = "1.45.1" version = "1.47.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779" checksum = "89e49afdadebb872d3145a5638b59eb0691ea23e46ca484037cfab3b76b95038"
dependencies = [ dependencies = [
"backtrace", "backtrace",
"bytes", "bytes",
"io-uring",
"libc", "libc",
"mio", "mio",
"parking_lot", "parking_lot",
"pin-project-lite", "pin-project-lite",
"signal-hook-registry", "signal-hook-registry",
"socket2", "slab",
"windows-sys 0.52.0", "socket2 0.6.0",
"windows-sys 0.59.0",
] ]
[[package]] [[package]]

@@ -6,13 +6,13 @@ edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.5.39", features = ["derive", "env"] } clap = { version = "4.5.48", features = ["derive", "env"] }
tar = "0.4.44" tar = "0.4.44"
actix-web = "4.11.0" actix-web = "4.11.0"
actix = "0.13.5" actix = "0.13.5"
lazy_static = "1.5.0" lazy_static = "1.5.0"
log = "0.4.27" log = "0.4.28"
env_logger = "0.11.8" env_logger = "0.11.8"
actix-web-httpauth = "0.8.2" actix-web-httpauth = "0.8.2"
askama = "0.14.0" askama = "0.14.0"
tokio = "1.45.1" tokio = "1.47.1"

@@ -102,7 +102,7 @@ struct SendWrapper(mpsc::SyncSender<Vec<u8>>);
impl Write for SendWrapper { impl Write for SendWrapper {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
if let Err(e) = self.0.send(buf.to_vec()) { if let Err(e) = self.0.send(buf.to_vec()) {
log::error!("Failed to send a chunk of data! {}", e); log::error!("Failed to send a chunk of data! {e}");
return Err(std::io::Error::other( return Err(std::io::Error::other(
"Failed to send a chunk of data!", "Failed to send a chunk of data!",
)); ));
@@ -127,7 +127,7 @@ impl FileStreamer {
for file in files_list() { for file in files_list() {
let file_path = &file.to_str().unwrap().replace(&ARGS.target_dir, "")[1..]; let file_path = &file.to_str().unwrap().replace(&ARGS.target_dir, "")[1..];
log::debug!("Add {} to archive", file_path); log::debug!("Add {file_path} to archive");
tar.append_file( tar.append_file(
file_path, file_path,
&mut File::open(&file).expect("Failed to open file"), &mut File::open(&file).expect("Failed to open file"),
@@ -149,7 +149,7 @@ impl Stream for FileStreamer {
match self.receive.recv() { match self.receive.recv() {
Ok(d) => Poll::Ready(Some(Ok(Bytes::copy_from_slice(&d)))), Ok(d) => Poll::Ready(Some(Ok(Bytes::copy_from_slice(&d)))),
Err(e) => { Err(e) => {
log::error!("Recv error: {}", e); log::error!("Recv error: {e}");
Poll::Ready(None) Poll::Ready(None)
} }
} }