diff --git a/core/src/sign/api.rs b/core/src/api.rs similarity index 100% rename from core/src/sign/api.rs rename to core/src/api.rs diff --git a/core/src/lib.rs b/core/src/lib.rs index f05698a..c41c9ac 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,22 +1,13 @@ //! Signing API requests without effort. -//! -//! # Services -//! -//! - [Aliyun OSS][crate::AliyunOssSigner] for Aliyun OSS. -//! - [AWS SigV4][`reqsign-aws-v4`] for AWS services like S3. -//! - [Azure Storage][crate::AzureStorageSigner] for Azure Storage services like Azure Blob Service. -//! - [Google][crate::GoogleSigner] for All google cloud services like Google Cloud Storage Service. -//! - [Huawei Cloud OBS][crate::HuaweicloudObsSigner] for Huawei Cloud Object Storage Service (OBS). // Make sure all our public APIs have docs. #![warn(missing_docs)] -mod sign; -pub use sign::*; - pub mod hash; pub mod time; +mod context; +pub use context::Context; mod fs; pub use fs::FileRead; mod http; @@ -24,5 +15,10 @@ pub use http::HttpSend; mod env; pub use env::Env; pub use env::StaticEnv; -mod context; -pub use context::Context; + +mod api; +pub use api::{Build, Key, Load}; +mod request; +pub use request::{SigningMethod, SigningRequest}; +mod signer; +pub use signer::Signer; diff --git a/core/src/sign/request.rs b/core/src/request.rs similarity index 100% rename from core/src/sign/request.rs rename to core/src/request.rs diff --git a/core/src/sign/mod.rs b/core/src/sign/mod.rs deleted file mode 100644 index f863576..0000000 --- a/core/src/sign/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -mod api; -pub use api::Build; -pub use api::Key; -pub use api::Load; - -mod request; -pub use request::SigningMethod; -pub use request::SigningRequest; - -mod signer; -pub use signer::Signer; diff --git a/core/src/sign/signer.rs b/core/src/signer.rs similarity index 100% rename from core/src/sign/signer.rs rename to core/src/signer.rs