From d3fdeb60de56ff3f8584d484e9f38d61d8496731 Mon Sep 17 00:00:00 2001 From: crwen <1543720935@qq.com> Date: Fri, 24 Jan 2025 16:56:11 +0800 Subject: [PATCH] refactor: re-export AwsCredential in fusio-log --- fusio-log/src/fs/mod.rs | 2 ++ fusio-log/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fusio-log/src/fs/mod.rs b/fusio-log/src/fs/mod.rs index 9b72d5a..027e8c7 100644 --- a/fusio-log/src/fs/mod.rs +++ b/fusio-log/src/fs/mod.rs @@ -1,2 +1,4 @@ +#[cfg(feature = "aws")] +pub use fusio::remotes::aws::AwsCredential; pub use fusio::{MaybeSend, SeqRead, Write}; pub(crate) mod hash; diff --git a/fusio-log/src/lib.rs b/fusio-log/src/lib.rs index 203b9b4..32a0451 100644 --- a/fusio-log/src/lib.rs +++ b/fusio-log/src/lib.rs @@ -174,7 +174,7 @@ mod tests { use tokio::pin; use crate::{ - fs::{SeqRead, Write}, + fs::{AwsCredential, SeqRead, Write}, Decode, Encode, FsOptions, Options, Path, }; @@ -323,7 +323,7 @@ mod tests { let path = Path::from_url_path("log").unwrap(); let option = Options::new(path).fs(FsOptions::S3 { bucket: "data".to_string(), - credential: Some(fusio::remotes::aws::AwsCredential { + credential: Some(AwsCredential { key_id: "key_id".to_string(), secret_key: "secret_key".to_string(), token: None,