Cargo Features
[dependencies]
min_jwt = { version = "0.10.0", default-features = false, features = ["std", "alloc", "p256", "rsa", "sha2", "signature", "ring"] }
- default = std
-
The
std
feature is set by default whenevermin_jwt
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of base64ct, serde, and serde_json
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
time::StdDurationSinceEpoch
… - alloc
-
Enables base64ct, serde, and serde_json
serde:
Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- serde alloc? std
-
Affects
min_jwt::serialize_encode_and_sign
… - serde_json alloc? std
-
Affects
min_jwt::serialize_encode_and_sign
… - p256 implicit feature
-
Affects
sign::p256
,verify::p256
… - rsa implicit feature
-
Enables rsa
rsa:
Pure Rust RSA implementation
Affects
sign::rsa
,verify::rsa
… - sha2 implicit feature
- signature implicit feature
-
Enables signature
signature:
Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)
- ring implicit feature
-
Enables ring
ring:
Safe, fast, small crypto using Rust
Affects
sign::ring
,verify::ring
…