From e11579c604f94db291d29c5189a906c280f89c4d Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 2 Nov 2015 23:27:28 +0000 Subject: [PATCH] Rename to jsonwebtoken --- Cargo.toml | 6 ++++-- README.md | 11 ++++++++--- benches/jwt.rs | 2 +- examples/claims.rs | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b858fc6..12a1c97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,13 @@ [package] -name = "jwt" +name = "jsonwebtoken" version = "0.1.0" authors = ["Vincent Prouillet "] 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" diff --git a/README.md b/README.md index 10c4d61..442bd18 100644 --- a/README.md +++ b/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. diff --git a/benches/jwt.rs b/benches/jwt.rs index 409fe6e..aa8f108 100644 --- a/benches/jwt.rs +++ b/benches/jwt.rs @@ -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}; diff --git a/examples/claims.rs b/examples/claims.rs index 522a4aa..26d9910 100644 --- a/examples/claims.rs +++ b/examples/claims.rs @@ -1,4 +1,4 @@ -extern crate jwt; +extern crate jsonwebtoken as jwt; extern crate rustc_serialize; use rustc_serialize::{Encodable};