1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Allow deprecated error types within this module - these are used internally
// but deprecated for external users who should migrate to `crate::Error`.
//! The outermost architectural layer is called `batteries_included`. This layer is implemented in the [prelude](self) module. This is what most people will need.
//! This feature includes JWT style claims and business rules for your PASETO token (default, but customizable expiration, issued at, not-before times, etc as described in the usage documentation and examples).
//!
//! 
//!
//! You must specify a version and purpose with this feature in order to reduce the size of your dependencies like in the following Cargo.toml entry which only includes the V4 - Local types with `batteries_included` functionality:
//!
//! ```toml
//! ## Includes only v4 modern sodium cipher crypto core and local (symmetric)
//! ## key types with all claims and default business rules.
//!
//! rusty_paseto = {version = "latest", features = ["batteries_included", "v4_local"] }
//! ```
//! 
//!
//! #### Feature gates
//! Valid version/purpose feature combinations are as follows:
//! - `v1_local` (NIST Original Symmetric Encryption)
//! - `v2_local` (Sodium Original Symmetric Encryption)
//! - `v3_local` (NIST Modern Symmetric Encryption)
//! - `v4_local` (Sodium Modern Symmetric Encryption)
//! - `v1_public_insecure` (NIST Original Asymmetric Authentication - **LEGACY**: 2048-bit RSA-PSS; use V4 for new code)
//! - `v2_public` (Sodium Original Asymmetric Authentication)
//! - `v3_public` (NIST Modern Asymmetric Authentication)
//! - `v4_public` (Sodium Modern Asymmetric Authentication)
pub use crate*;
pub use GeneralPasetoError;
pub use PasetoBuilder;
pub use PasetoParser;
// PASERK re-exports when the paserk feature is enabled
pub use crate;