Build Status MIT licensed Join the chat at https://gitter.im/durch/rust-jwt

rust-jwt [[docs](https://durch.github.io/rust-jwt)]

Very simple JWT generation lib, provides a Jwt struct which can be finalised to produce an encoded and signed String representation.

Generic over serde::ser::Serialize trait.

Usage

```rust

[macro_use]

extern crate serdederive; extern crate serde; extern crate smpljwt;

use serde::Serialize; use smpl_jwt::{Jwt, RSAKey};

fn main() { #[derive(Serialize)] struct ExampleStruct { field: String }

let rsakey = match RSAKey::frompem("randomrsafor_testing") { Ok(x) => x, Err(e) => panic!("{}", e) };

let jwt = Jwt::new(ExampleStruct{field: String::from("test")}, rsa_key, None); println!("{}", jwt); } ```