build(deps): bump the dependencies group with 4 updates (#1955)

This commit is contained in:
houseme
2026-02-25 19:21:20 +08:00
committed by GitHub
parent aea7f41149
commit 024a3107d8
11 changed files with 70 additions and 93 deletions
+2 -1
View File
@@ -27,7 +27,7 @@ categories = ["network-programming", "filesystem"]
[features]
default = []
ftps = ["dep:libunftp", "dep:rustls"]
ftps = ["dep:libunftp", "dep:unftp-core", "dep:rustls"]
[dependencies]
# Core RustFS dependencies
@@ -57,6 +57,7 @@ s3s = { workspace = true }
# FTPS specific dependencies (optional)
libunftp = { workspace = true, optional = true }
unftp-core = { workspace = true, optional = true }
rustls = { workspace = true, optional = true }
[package.metadata.docs.rs]
+2 -2
View File
@@ -17,13 +17,13 @@ use crate::common::gateway::S3Action;
use crate::common::gateway::authorize_operation;
use async_trait::async_trait;
use futures_util::stream;
use libunftp::storage::{Error, ErrorKind, Fileinfo, Metadata, Result, StorageBackend};
use rustfs_utils::path;
use s3s::dto::*;
use std::fmt::Debug;
use std::path::{Path, PathBuf};
use tokio::io::AsyncRead;
use tracing::{debug, error};
use unftp_core::storage::{Error, ErrorKind, Fileinfo, Metadata, Result, StorageBackend};
/// FTPS metadata implementation
#[derive(Debug, Clone)]
@@ -89,7 +89,7 @@ where
async fn list_buckets(
&self,
session_context: &crate::common::session::SessionContext,
) -> Result<Vec<Fileinfo<PathBuf, <FtpsDriver<S> as libunftp::storage::StorageBackend<super::server::FtpsUser>>::Metadata>>>
) -> Result<Vec<Fileinfo<PathBuf, <FtpsDriver<S> as unftp_core::storage::StorageBackend<super::server::FtpsUser>>::Metadata>>>
{
match authorize_operation(session_context, &S3Action::ListBuckets, "", None).await {
Ok(_) => {}
+4 -2
View File
@@ -17,7 +17,6 @@ use super::driver::FtpsDriver;
use crate::common::client::s3::StorageBackend;
use crate::common::session::{Protocol, ProtocolPrincipal, SessionContext};
use crate::constants::{network::DEFAULT_SOURCE_IP, paths::ROOT_PATH};
use libunftp::auth::{AuthenticationError, Authenticator, Principal, UserDetail, UserDetailError, UserDetailProvider};
use libunftp::options::FtpsRequired;
use std::fmt::{Debug, Display, Formatter};
use std::net::IpAddr;
@@ -25,6 +24,9 @@ use std::path::Path;
use std::sync::Arc;
use tokio::sync::broadcast;
use tracing::{debug, error, info, warn};
use unftp_core::auth::{
AuthenticationError, Authenticator, Credentials, Principal, UserDetail, UserDetailError, UserDetailProvider,
};
/// FTPS user implementation
#[derive(Debug, Clone)]
@@ -253,7 +255,7 @@ impl FtpsAuthenticator {
#[async_trait::async_trait]
impl Authenticator for FtpsAuthenticator {
/// Authenticate FTP user against RustFS IAM system
async fn authenticate(&self, username: &str, creds: &libunftp::auth::Credentials) -> Result<Principal, AuthenticationError> {
async fn authenticate(&self, username: &str, creds: &Credentials) -> Result<Principal, AuthenticationError> {
use rustfs_credentials::Credentials as S3Credentials;
use rustfs_iam::get;
-1
View File
@@ -45,7 +45,6 @@ chrono = { workspace = true }
path-clean = { workspace = true }
rmp-serde = { workspace = true }
rustfs-filemeta = { workspace = true }
rustfs-madmin = { workspace = true }
tokio-util = { workspace = true }
rustfs-ecstore = { workspace = true }
http = { workspace = true }