Skip to content

Commit

Permalink
Merge pull request #21 from alexrudy/re-exports
Browse files Browse the repository at this point in the history
Re-export related modules
  • Loading branch information
alexrudy authored Dec 4, 2023
2 parents 2d44eba + 4ef087a commit 26ee6a2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 26ee6a2

Please sign in to comment.