Select a cryptography backend via CryptoProvider
masterThe jsonwebtoken crate decouples its cryptography logic behind the CryptoProvider struct. You must ensure a provider is available for the library to function.
There are two built-in options available via Cargo features:
aws_lc_rs: Uses the aws-lc-rs crate (requires theaws_lc_rsfeature).rust_crypto: Uses crates from the Rust Crypto project (requires therust_cryptofeature).
If you have enabled exactly one of these features, the library will automatically select the corresponding DEFAULT_PROVIDER. If you need to use a custom implementation or if automatic selection fails, you must manually install a provider using CryptoProvider::install_default() before performing any signing or verification operations.