fix(aws-s3): updated remotefs-aws-s3 to 0.4.1
Some checks are pending
Linux / build (push) Waiting to run
MacOS / build (push) Waiting to run
Windows / build (push) Waiting to run

should fix #329
This commit is contained in:
veeso
2025-03-16 20:06:35 +01:00
parent 274742d6d9
commit a18eff689d
3 changed files with 840 additions and 193 deletions

1018
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -57,10 +57,7 @@ open = "^5.0"
rand = "^0.9"
regex = "^1"
remotefs = "^0.3"
remotefs-aws-s3 = { version = "^0.3", default-features = false, features = [
"find",
"rustls",
] }
remotefs-aws-s3 = "0.4"
remotefs-kube = "0.4"
remotefs-webdav = "^0.2"
rpassword = "^7"

View File

@@ -72,7 +72,15 @@ impl RemoteFsBuilder {
/// Build aws s3 client from parameters
fn aws_s3_client(params: AwsS3Params) -> AwsS3Fs {
let mut client = AwsS3Fs::new(params.bucket_name).new_path_style(params.new_path_style);
let rt = Arc::new(
tokio::runtime::Builder::new_current_thread()
.worker_threads(1)
.enable_all()
.build()
.expect("Unable to create tokio runtime"),
);
let mut client =
AwsS3Fs::new(params.bucket_name, &rt).new_path_style(params.new_path_style);
if let Some(region) = params.region {
client = client.region(region);
}