Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
durch committed May 4, 2020
1 parent 6d4feaa commit 3540f31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 63 deletions.
10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
name = "smpl_jwt"
version = "0.4.0"
version = "0.5.0"
authors = ["Drazen Urch <github@drazenur.ch>"]
description = "Very simple JWT generation lib."
repository = "https://github.com/durch/rust-jwt"
readme = "README.md"
keywords = ["JWT"]
license = "MIT"
documentation = "https://durch.github.io/rust-jwt"
edition = "2018"

[lib]
name = "smpl_jwt"
Expand All @@ -18,6 +19,7 @@ serde = "^1.0"
serde_derive = "^1.0"
serde_json = "^1.0"
openssl = "^0.10"
time = "^0.1.35"
log = "0.4.6"
base64 = "0.10.0"
time = "0.2.14"
log = "^0.4.6"
base64 = "0.12.0"
simpl = "0.1.0"
48 changes: 0 additions & 48 deletions src/error.rs

This file was deleted.

18 changes: 7 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
#![allow(dead_code)]

extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate openssl;
extern crate time;
extern crate log;
extern crate base64;

pub mod error;

use simpl::err;
use std::*;
use std::str::FromStr;
use openssl::sign::Signer;
Expand All @@ -23,7 +14,12 @@ use serde::ser::Serialize;
use std::io::prelude::*;
use std::fs::File;

use error::JwtErr;
err!(JwtErr,
{
Json@serde_json::Error;
OpenSsl@openssl::error::ErrorStack;
Io@std::io::Error;
});

#[derive(Debug)]
pub enum Algorithm {
Expand Down

0 comments on commit 3540f31

Please sign in to comment.