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,