From 4ef087ace04029d9473222575bdc7d1cfc8dcb98 Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Mon, 4 Dec 2023 21:10:06 +0000 Subject: [PATCH] Re-export related modules --- src/lib.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d303bed..35c7757 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,3 +57,25 @@ pub use claims::{Claims, RegisteredClaims}; pub use fmt::JWTFormat; pub use token::Token; pub use token::{Compact, Flat, FlatUnprotected}; + +/// Module for re-exports of related crates +/// +/// Use these aliases to access related traits and types. +pub mod crypto { + pub use digest; + #[cfg(feature = "ecdsa")] + pub use ecdsa; + #[cfg(feature = "p256")] + pub use p256; + #[cfg(feature = "p384")] + pub use p384; + #[cfg(feature = "p521")] + pub use p521; + pub use pkcs8; + #[cfg(feature = "rand")] + pub use rand_core; + #[cfg(feature = "rsa")] + pub use rsa; + pub use sha2; + pub use signature; +}