jsonwebtoken/src/lib.rs

25 lines
669 B
Rust
Raw Normal View History

2015-10-31 11:37:15 -04:00
//! Create and parses JWT (JSON Web Tokens)
//!
2017-04-13 03:36:32 -04:00
//! Documentation: [stable](https://docs.rs/jsonwebtoken/)
2017-04-12 21:08:07 -04:00
#![deny(missing_docs)]
2017-02-22 02:45:28 -05:00
2019-06-16 11:51:43 -04:00
mod algorithms;
2019-11-14 13:43:43 -05:00
/// Lower level functions, if you want to do something other than JWTs
pub mod crypto;
2019-11-09 06:42:40 -05:00
mod decoding;
2019-12-29 12:42:35 -05:00
mod encoding;
2019-11-14 13:43:43 -05:00
/// All the errors that can be encountered while encoding/decoding JWTs
2015-10-31 11:37:15 -04:00
pub mod errors;
mod header;
pub mod jwk;
2022-01-28 16:37:40 -05:00
#[cfg(feature = "use_pem")]
2019-11-14 13:43:43 -05:00
mod pem;
2017-02-22 02:45:28 -05:00
mod serialization;
2017-04-11 01:41:44 -04:00
mod validation;
2019-06-16 11:51:43 -04:00
pub use algorithms::Algorithm;
pub use decoding::{decode, decode_header, DecodingKey, TokenData};
2019-12-29 12:42:35 -05:00
pub use encoding::{encode, EncodingKey};
pub use header::Header;
pub use validation::{get_current_timestamp, Validation};