Rename to jsonwebtoken
This commit is contained in:
parent
6ae77c0b06
commit
e11579c604
|
@ -1,11 +1,13 @@
|
||||||
[package]
|
[package]
|
||||||
name = "jwt"
|
name = "jsonwebtoken"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
|
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Create and parse JWT."
|
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]
|
[dependencies]
|
||||||
rustc-serialize = "0.3"
|
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)
|
[![Build Status](https://travis-ci.org/Keats/rust-jwt.svg)](https://travis-ci.org/Keats/rust-jwt)
|
||||||
|
|
||||||
## Dependencies
|
## Installation
|
||||||
You will need to add `rustc-serialize` to your Cargo.toml in order to use this crate.
|
Add the following to Cargo.toml:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
jsonwebtoken = "0.1"
|
||||||
|
rustc-serialize = "0.3"
|
||||||
|
```
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
There is a complete example in examples/claims.rs but here's a quick one.
|
There is a complete example in examples/claims.rs but here's a quick one.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
extern crate test;
|
extern crate test;
|
||||||
extern crate jwt;
|
extern crate jsonwebtoken as jwt;
|
||||||
extern crate rustc_serialize;
|
extern crate rustc_serialize;
|
||||||
|
|
||||||
use rustc_serialize::{Encodable};
|
use rustc_serialize::{Encodable};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
extern crate jwt;
|
extern crate jsonwebtoken as jwt;
|
||||||
extern crate rustc_serialize;
|
extern crate rustc_serialize;
|
||||||
|
|
||||||
use rustc_serialize::{Encodable};
|
use rustc_serialize::{Encodable};
|
||||||
|
|
Loading…
Reference in New Issue