From 3b6a1d2941680ea238aed0f47f2f395e8ad2ee26 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Tue, 14 May 2024 09:46:57 -0600 Subject: [PATCH] Update cap_std to 3.0 This is a prerequisite for fixing a bug in cap-std --- crates/unftp-sbe-fs/Cargo.toml | 2 +- crates/unftp-sbe-fs/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/unftp-sbe-fs/Cargo.toml b/crates/unftp-sbe-fs/Cargo.toml index c59271d5..ed775e5f 100644 --- a/crates/unftp-sbe-fs/Cargo.toml +++ b/crates/unftp-sbe-fs/Cargo.toml @@ -21,7 +21,7 @@ readme = "README.md" [dependencies] async-trait = "0.1.80" cfg-if = "1.0" -cap-std = "2.0" +cap-std = "3.0" futures = { version = "0.3.30", default-features = false, features = ["std"] } lazy_static = "1.4.0" libunftp = { version = "0.20.1", path = "../../" } diff --git a/crates/unftp-sbe-fs/src/lib.rs b/crates/unftp-sbe-fs/src/lib.rs index b879ab14..296a1e2c 100644 --- a/crates/unftp-sbe-fs/src/lib.rs +++ b/crates/unftp-sbe-fs/src/lib.rs @@ -40,7 +40,7 @@ use std::{ use tokio::io::AsyncSeekExt; #[cfg(unix)] -use std::os::unix::fs::{MetadataExt, PermissionsExt}; +use cap_std::fs::{MetadataExt, PermissionsExt}; /// The Filesystem struct is an implementation of the StorageBackend trait that keeps its files /// inside a specific root directory on local disk.