Rename to jsonwebtoken

This commit is contained in:
Vincent Prouillet 2015-11-02 23:27:28 +00:00
parent 6ae77c0b06
commit e11579c604
4 changed files with 14 additions and 7 deletions

View File

@ -1,11 +1,13 @@
[package]
name = "jwt"
name = "jsonwebtoken"
version = "0.1.0"
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
license = "MIT"
readme = "README.md"
description = "Create and parse JWT."
keywords = ["jwt", "web", "api", "token"]
homepage = "https://github.com/Keats/rust-jwt"
repository = "https://github.com/Keats/rust-jwt"
keywords = ["jwt", "web", "api", "token", "json"]
[dependencies]
rustc-serialize = "0.3"

View File

@ -1,9 +1,14 @@
# JWT
# jsonwebtoken
[![Build Status](https://travis-ci.org/Keats/rust-jwt.svg)](https://travis-ci.org/Keats/rust-jwt)
## Dependencies
You will need to add `rustc-serialize` to your Cargo.toml in order to use this crate.
## Installation
Add the following to Cargo.toml:
```toml
jsonwebtoken = "0.1"
rustc-serialize = "0.3"
```
## How to use
There is a complete example in examples/claims.rs but here's a quick one.

View File

@ -1,6 +1,6 @@
#![feature(test)]
extern crate test;
extern crate jwt;
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;
use rustc_serialize::{Encodable};

View File

@ -1,4 +1,4 @@
extern crate jwt;
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;
use rustc_serialize::{Encodable};