diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 | ||||
-rw-r--r-- | src/security.rs | 4 | ||||
-rw-r--r-- | src/security/signed.rs (renamed from src/signed.rs) | 0 |
3 files changed, 8 insertions, 3 deletions
@@ -6,10 +6,13 @@ pub use mime; pub use httpdate; -pub mod security; pub mod request; pub mod response; -mod signed; + +#[cfg(feature="security")] +#[cfg_attr(docsrs, doc(cfg(feature = "security")))] +pub mod security; + #[cfg(feature="hyper_body")] #[cfg_attr(docsrs, doc(cfg(feature = "hyper_body")))] pub mod hyper_body; diff --git a/src/security.rs b/src/security.rs index a270ee9..abe114e 100644 --- a/src/security.rs +++ b/src/security.rs @@ -2,7 +2,9 @@ use time::OffsetDateTime; -pub use crate::signed::Key; +pub use signed::Key; + +mod signed; /// Join a string and an expiry date together into a string. pub fn encode_expiring_claim(claim: &str, expiry_date: OffsetDateTime) -> String { diff --git a/src/signed.rs b/src/security/signed.rs index 4da6760..4da6760 100644 --- a/src/signed.rs +++ b/src/security/signed.rs |