From 7fe37648a840932dfb1c7f83c4f19374b1c5b65a Mon Sep 17 00:00:00 2001 From: Hannes de Jager Date: Wed, 28 Oct 2026 15:14:53 +0700 Subject: [PATCH] Upgrade workspace dependencies Upgrade base64, nix, md-5, and rstest across the workspace before preparing the next release. Preserve the 32-character lowercase MD5 representation now that the digest output no longer implements LowerHex. Keep PAM at 0.7 because 0.8 fails to compile on macOS, which the current Unix platform guards include. --- Cargo.toml | 4 ++-- crates/unftp-core/Cargo.toml | 2 +- crates/unftp-core/src/storage/storage_backend.rs | 2 +- crates/unftp-sbe-fs/Cargo.toml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 860fc683..b6a371f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ all = "deny" [workspace.dependencies] async-trait = "0.1.92" -base64 = "0.22.1" +base64 = "0.23.1" bytes = "1.12.1" chrono = { version = "0.4.45", default-features = false } derive_more = { version = "2.1.1", features = ["display"] } @@ -85,7 +85,7 @@ getrandom.workspace = true lazy_static.workspace = true unftp-core.workspace = true moka = { version = "0.12.16", default-features = false, features = ["sync"] } -nix = { version = "0.30.1", default-features = false, features = ["fs"] } +nix = { version = "0.31.3", default-features = false, features = ["fs"] } prometheus = { version = "0.14.0", default-features = false, optional = true } proxy-protocol = { version = "0.5.0", optional = true } rustls = { version = "0.23.46", default-features = false } diff --git a/crates/unftp-core/Cargo.toml b/crates/unftp-core/Cargo.toml index 27133d17..26dc367c 100644 --- a/crates/unftp-core/Cargo.toml +++ b/crates/unftp-core/Cargo.toml @@ -20,7 +20,7 @@ async-trait.workspace = true chrono = { workspace = true, default-features = false, features = ["clock", "std"] } derive_more.workspace = true libc = "0.2" -md-5 = "0.10.6" +md-5 = "0.11.0" thiserror.workspace = true tokio = { workspace = true, features = ["io-util"] } x509-parser = "0.18.1" diff --git a/crates/unftp-core/src/storage/storage_backend.rs b/crates/unftp-core/src/storage/storage_backend.rs index 6862d996..caa62323 100644 --- a/crates/unftp-core/src/storage/storage_backend.rs +++ b/crates/unftp-core/src/storage/storage_backend.rs @@ -233,7 +233,7 @@ pub trait StorageBackend: Send + Sync + Debug { md5sum.update(&buffer[0..n]); } - Ok(format!("{:x}", md5sum.finalize())) + Ok(md5sum.finalize().iter().map(|byte| format!("{byte:02x}")).collect()) } /// Returns the entries in the directory at `path`. diff --git a/crates/unftp-sbe-fs/Cargo.toml b/crates/unftp-sbe-fs/Cargo.toml index b297dee4..8a797ba4 100644 --- a/crates/unftp-sbe-fs/Cargo.toml +++ b/crates/unftp-sbe-fs/Cargo.toml @@ -36,11 +36,11 @@ async-trait.workspace = true chrono = "0.4.45" libunftp = { path = "../../", features = ["proxy_protocol"] } more-asserts = "0.3.1" -nix = { version = "0.30.1", default-features = false, features = ["user"] } +nix = { version = "0.31.3", default-features = false, features = ["user"] } pretty_assertions = "1.4.1" pretty_env_logger = "0.5.0" regex = "1.13.1" -rstest = "0.26.1" +rstest = "0.28.0" serde.workspace = true serde_json.workspace = true slog-async = "2.8.0"