mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08:00
1018
Cargo.lock
generated
1018
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -57,10 +57,7 @@ open = "^5.0"
|
|||||||
rand = "^0.9"
|
rand = "^0.9"
|
||||||
regex = "^1"
|
regex = "^1"
|
||||||
remotefs = "^0.3"
|
remotefs = "^0.3"
|
||||||
remotefs-aws-s3 = { version = "^0.3", default-features = false, features = [
|
remotefs-aws-s3 = "0.4"
|
||||||
"find",
|
|
||||||
"rustls",
|
|
||||||
] }
|
|
||||||
remotefs-kube = "0.4"
|
remotefs-kube = "0.4"
|
||||||
remotefs-webdav = "^0.2"
|
remotefs-webdav = "^0.2"
|
||||||
rpassword = "^7"
|
rpassword = "^7"
|
||||||
|
|||||||
@@ -72,7 +72,15 @@ impl RemoteFsBuilder {
|
|||||||
|
|
||||||
/// Build aws s3 client from parameters
|
/// Build aws s3 client from parameters
|
||||||
fn aws_s3_client(params: AwsS3Params) -> AwsS3Fs {
|
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 {
|
if let Some(region) = params.region {
|
||||||
client = client.region(region);
|
client = client.region(region);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user