From 067e38456c3e657314e45f787121432552c4c3f8 Mon Sep 17 00:00:00 2001 From: Jonas Spanoghe Date: Sun, 6 Apr 2025 09:14:40 +0200 Subject: [PATCH 1/2] chore: Update dependencies to latest version --- Cargo.toml | 34 +++++++++++++++++----------------- src/tests/random_file.rs | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f229308..088e904 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,30 +14,30 @@ exclude = [".github", "rfcs"] repository = "https://github.com/oblique/async-tftp-rs" [dependencies] -bytes = "1.5.0" -log = "0.4.20" -thiserror = "1.0.48" +bytes = "1.10.1" +log = "0.4.27" +thiserror = "2.0.12" -async-executor = "1.5.1" -async-io = "1.13.0" -async-lock = "2.8.0" -blocking = "1.3.1" -futures-lite = "1.13.0" +async-executor = "1.13.1" +async-io = "2.4.0" +async-lock = "3.4.0" +blocking = "1.6.1" +futures-lite = "2.6.0" [dev-dependencies] -anyhow = "1.0.75" -async-channel = "1.9.0" -fern = "0.6.2" +anyhow = "1.0.97" +async-channel = "2.3.1" +fern = "0.7.1" md5 = "0.7.0" -rand = { version = "0.8.5", features = ["small_rng"] } +rand = { version = "0.9.0", features = ["small_rng", "os_rng"] } structopt = "0.3.26" -tempfile = "3.8.0" -tokio = { version = "1.32.0", features = ["rt-multi-thread", "macros"] } +tempfile = "3.19.1" +tokio = { version = "1.44.2", features = ["rt-multi-thread", "macros"] } # deps for tftpd-targz.rs -async-compression = { version = "0.4.3", features = ["gzip", "futures-io"] } -async-std = { version = "1.12.0", features = ["unstable"] } -async-tar = "0.4.2" +async-compression = { version = "0.4.22", features = ["gzip", "futures-io"] } +async-std = { version = "1.13.1", features = ["unstable"] } +async-tar = "0.5.0" [features] external-client-tests = [] diff --git a/src/tests/random_file.rs b/src/tests/random_file.rs index e047b54..5f1a2ba 100644 --- a/src/tests/random_file.rs +++ b/src/tests/random_file.rs @@ -23,7 +23,7 @@ impl RandomFile { RandomFile { size, read_size: 0, - rng: SmallRng::from_entropy(), + rng: SmallRng::from_os_rng(), md5_ctx: Some(md5::Context::new()), md5_tx: Some(md5_tx), } From b1d8eca937ed9359c7c576efd092b3bc84522967 Mon Sep 17 00:00:00 2001 From: Jonas Spanoghe Date: Sun, 6 Apr 2025 09:14:56 +0200 Subject: [PATCH 2/2] chore: Fix clippy --- src/packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packet.rs b/src/packet.rs index 3d679da..47e1abf 100644 --- a/src/packet.rs +++ b/src/packet.rs @@ -85,7 +85,7 @@ impl From for u16 { } } -impl<'a> Packet<'a> { +impl Packet<'_> { pub(crate) fn decode(data: &[u8]) -> Result { parse_packet(data) }