Registry / auth / jwt-compact

jwt-compact

JSON →
library0.8.0rscratesunverified

Minimalistic JWT implementation with focus on type safety and secure cryptographic primitives.

# Cargo.toml [dependencies] jwt-compact = "0.8.0"
INSTALL
IMPORT
SIG · JWT-COMPACT
J
jwt-compact
authrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Claims
use jwt_compact::Claims;

Creates a new JWT claims set.

use jwt_compact::Claims; fn main() { let claims = Claims::new("subject"); println!("Claims: {:?}", claims); }
Debug
Known issues
gotchaRequires feature flags for specific algorithms (e.g., "rsa")
fix
Enable the appropriate feature in Cargo.toml, e.g., jwt-compact = { version = "0.8", features = ["rsa"] }
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
jwt-compact — cargo add jwt-compact · libregistry