add missing doc

This commit is contained in:
MedzikUser 2022-06-18 11:35:53 +02:00
parent 9c2fb0c8e9
commit 837087daa9
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
2 changed files with 5 additions and 0 deletions

View File

@ -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")]

View File

@ -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,
}