Rename to jsonwebtoken
This commit is contained in:
parent
6ae77c0b06
commit
e11579c604
|
@ -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"
|
||||
|
|
11
README.md
11
README.md
|
@ -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.
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern crate jwt;
|
||||
extern crate jsonwebtoken as jwt;
|
||||
extern crate rustc_serialize;
|
||||
|
||||
use rustc_serialize::{Encodable};
|
||||
|
|
Loading…
Reference in New Issue