5 releases (3 breaking)

0.4.0 Jan 2, 2016
0.3.0 Aug 18, 2015
0.2.0 Jun 4, 2015
0.1.1 May 25, 2015
0.1.0 May 25, 2015

#5 in Authentication

Download history 179/week @ 2018-05-26 322/week @ 2018-06-02 379/week @ 2018-06-09 235/week @ 2018-06-16 110/week @ 2018-06-23 165/week @ 2018-06-30 87/week @ 2018-07-07 122/week @ 2018-07-14 68/week @ 2018-07-21 149/week @ 2018-07-28 181/week @ 2018-08-04 154/week @ 2018-08-11 89/week @ 2018-08-18

477 downloads per month
Used in 2 crates

MIT license

13KB
347 lines

JWT

A JSON Web Token library.

Documentation

Installation

Add this to your Cargo.toml:

[dependencies]
jwt = "0.3.0"

and this to your crate root:

extern crate jwt;

Usage

The library provides a Token type that wraps a header and claims. The header and claims can be any types that implement the Component trait, which is automatically implemented for types that implement the Sized, Encodable, and Decodable traits. See the examples.

Dependencies

~3.5MB
~43K SLoC