add missing doc
This commit is contained in:
parent
9c2fb0c8e9
commit
837087daa9
|
@ -81,6 +81,8 @@
|
|||
//! | `sha` | Enable support for the Sha1, Sha256 and Sha512 hasher | `sha` and `sha2` | yes |
|
||||
//! | `jwt` | Enable support for the Json Web Token utils | `chrono`, `serde` and `jsonwebtoken` | yes |
|
||||
|
||||
#![warn(missing_docs)]
|
||||
|
||||
#[cfg(feature = "jwt")]
|
||||
pub mod jsonwebtoken;
|
||||
#[cfg(feature = "sha")]
|
||||
|
|
|
@ -22,8 +22,11 @@ use sha2::{Sha256, Sha512};
|
|||
/// Hashing algorithms
|
||||
#[derive(Debug)]
|
||||
pub enum Algorithm {
|
||||
/// [SHA-1](https://en.wikipedia.org/wiki/SHA-1)
|
||||
SHA1,
|
||||
/// [SHA-256](https://en.wikipedia.org/wiki/SHA-2)
|
||||
SHA256,
|
||||
/// [SHA-512](https://en.wikipedia.org/wiki/SHA-2)
|
||||
SHA512,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue