Remove useless import + improve readme

This commit is contained in:
Vincent Prouillet 2015-11-02 23:32:32 +00:00
parent e11579c604
commit 31d99324e2
3 changed files with 8 additions and 2 deletions

View File

@ -13,6 +13,14 @@ rustc-serialize = "0.3"
## How to use
There is a complete example in examples/claims.rs but here's a quick one.
In terms of imports:
```rust
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;
use jwt::{encode, decode, Algorithm};
```
### Encoding
```rust
// encode<T: Part>(claims: T, secret: String, algorithm: Algorithm) -> Result<String, Error>

View File

@ -3,7 +3,6 @@ extern crate test;
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;
use rustc_serialize::{Encodable};
use jwt::{encode, decode, Algorithm};
#[derive(Debug, PartialEq, Clone, RustcEncodable, RustcDecodable)]

View File

@ -1,7 +1,6 @@
extern crate jsonwebtoken as jwt;
extern crate rustc_serialize;
use rustc_serialize::{Encodable};
use jwt::{
Algorithm,
encode,