jsonwebtoken/src/lib.rs

40 lines
734 B
Rust
Raw Normal View History

2015-10-31 11:37:15 -04:00
//! Create and parses JWT (JSON Web Tokens)
//!
2017-02-22 02:45:28 -05:00
#![recursion_limit = "300"]
2017-04-12 21:08:07 -04:00
#![deny(missing_docs)]
2017-02-22 02:45:28 -05:00
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate serde;
extern crate base64;
2016-08-23 12:39:18 -04:00
extern crate ring;
2017-02-22 02:45:28 -05:00
extern crate untrusted;
2017-04-11 01:41:44 -04:00
extern crate chrono;
2016-08-23 12:39:18 -04:00
2017-04-12 21:08:07 -04:00
/// All the errors, generated using error-chain
2015-10-31 11:37:15 -04:00
pub mod errors;
mod header;
mod crypto;
2017-02-22 02:45:28 -05:00
mod serialization;
2017-04-11 01:41:44 -04:00
mod validation;
pub use header::{Header};
2017-02-22 02:45:28 -05:00
pub use crypto::{
Algorithm,
sign,
verify,
encode,
decode,
};
2017-04-11 01:41:44 -04:00
pub use validation::Validation;
// To consider:
//pub mod prelude {
// pub use crypto::{Algorithm, encode, decode};
// pub use validation::Validation;
// pub use header::Header;
//}