You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/05/11 11:34:40 UTC
(opendal) branch xuanwo/upgrade-suppaftp-8 created (now 27eb4a1bd)
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a change to branch xuanwo/upgrade-suppaftp-8
in repository https://gitbox.apache.org/repos/asf/opendal.git
at 27eb4a1bd chore(services/ftp): Upgrade suppaftp to 8.0.3
This branch includes the following new commits:
new 27eb4a1bd chore(services/ftp): Upgrade suppaftp to 8.0.3
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(opendal) 01/01: chore(services/ftp): Upgrade suppaftp to 8.0.3
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/upgrade-suppaftp-8
in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 27eb4a1bdcf1365a6ed9bb8002a0defa5b4acd4a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon May 11 19:34:21 2026 +0800
chore(services/ftp): Upgrade suppaftp to 8.0.3
---
core/Cargo.lock | 5 ++---
core/services/ftp/Cargo.toml | 6 ++----
core/services/ftp/src/core.rs | 11 ++++++-----
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/core/Cargo.lock b/core/Cargo.lock
index df21f618c..609c9541c 100644
--- a/core/Cargo.lock
+++ b/core/Cargo.lock
@@ -10709,9 +10709,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "suppaftp"
-version = "6.3.0"
+version = "8.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9d869e942cc5f349ad91645925a9e6b570f62c4c170ad1c7b92b867bd16bd54"
+checksum = "4275c142b5be3af2eeadd70dd368caf3b65546c8af1035839372dd7a1436127d"
dependencies = [
"async-std",
"async-trait",
@@ -10721,7 +10721,6 @@ dependencies = [
"lazy-regex",
"log",
"pin-project",
- "rustls 0.23.40",
"rustls-pki-types",
"thiserror 2.0.18",
]
diff --git a/core/services/ftp/Cargo.toml b/core/services/ftp/Cargo.toml
index c66cc2818..97bb907a4 100644
--- a/core/services/ftp/Cargo.toml
+++ b/core/services/ftp/Cargo.toml
@@ -40,10 +40,8 @@ log = { workspace = true }
opendal-core = { path = "../../core", version = "0.56.0", default-features = false }
rustls-native-certs = "0.8"
serde = { workspace = true, features = ["derive"] }
-suppaftp = { version = "6.3.0", default-features = false, features = [
- "async-secure",
- "rustls",
- "async-rustls",
+suppaftp = { version = "8.0.3", default-features = false, features = [
+ "async-std-rustls-ring",
] }
tokio = { workspace = true, features = ["macros", "time"] }
diff --git a/core/services/ftp/src/core.rs b/core/services/ftp/src/core.rs
index 4be772c13..0bb670763 100644
--- a/core/services/ftp/src/core.rs
+++ b/core/services/ftp/src/core.rs
@@ -19,12 +19,13 @@ use std::sync::Arc;
use fastpool::{ManageObject, ObjectStatus, bounded};
use futures_rustls::TlsConnector;
-use suppaftp::AsyncRustlsConnector;
-use suppaftp::AsyncRustlsFtpStream;
+use futures_rustls::rustls::ClientConfig;
+use futures_rustls::rustls::RootCertStore;
use suppaftp::FtpError;
-use suppaftp::ImplAsyncFtpStream;
use suppaftp::Status;
-use suppaftp::rustls::ClientConfig;
+use suppaftp::async_std::AsyncRustlsConnector;
+use suppaftp::async_std::AsyncRustlsFtpStream;
+use suppaftp::async_std::ImplAsyncFtpStream;
use suppaftp::types::FileType;
use super::err::format_ftp_error;
@@ -78,7 +79,7 @@ impl ManageObject for Manager {
let stream = ImplAsyncFtpStream::connect(&self.endpoint).await?;
// switch to secure mode if ssl/tls is on.
let mut ftp_stream = if self.enable_secure {
- let mut root_store = suppaftp::rustls::RootCertStore::empty();
+ let mut root_store = RootCertStore::empty();
for cert in
rustls_native_certs::load_native_certs().expect("could not load platform certs")
{