NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2732 most downloaded on crates.io
JSON Web Token library
Latest stable
0.16.0
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 4.3 years
Some releases are documented
notes for 6 of 17 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
17 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Make all invalid signatures into hard errors instead of returning the boolean validation result
Fix issued_at claim serde attribute
issued_at claim serde attributeDeserializeOwned to Deserializebase64 | 0.10 | 0.12 crypto-mac | 0.7 | 0.8 digest | 0.8 | 0.9 hmac | 0.7 | 0.8 sha2 | 0.8 | 0.9
| Dependency | Old | New |
|---|---|---|
| base64 | 0.10 | 0.12 |
| crypto-mac | 0.7 | 0.8 |
| digest | 0.8 | 0.9 |
| hmac | 0.7 | 0.8 |
| sha2 | 0.8 | 0.9 |
With the Store trait, you can keep collections of keys indexed by their key ids.
With the Store trait, you can keep collections of keys indexed by their key ids.
Move all of the previous structs to the legacy module
legacy moduleHeader, Claims, and Token typesFor most, the following should be enough with their own defined claims types:
With the following key:
let key: Hmac<Sha256> = Hmac::new_varkey(b"some-secret").unwrap();
Signing:
let mut claims = BTreeMap::new();
claims.insert("sub", "someone");
let token_str = claims.sign_with_key(&key).unwrap();
Verification:
let token_str = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzb21lb25lIn0.5wwE1sBrs-vftww_BGIuTVDeHtc1Jsjo-fiHhDwR8m0";
let claims: BTreeMap<String, String> = VerifyWithKey::verify_with_key(token_str, &key).unwrap();
The only user facing changes are much needed updates to the crypto dependencies, courtesy of #10.
The only user facing changes are much needed updates to the crypto dependencies, courtesy of #10.
Types from the previous crate, rust-crypto are replaced with types from various crates from https://github.com/RustCrypto.
For example, replace the type crypto::sha2::Sha256 with sha2::Sha256.
Additionally, rustc_serialize has been migrated to serde from #9.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.