Added error-chain to lib.rs

This commit is contained in:
Michael Bryan 2017-06-24 23:48:50 +08:00
parent b441066105
commit 6761442241
2 changed files with 14 additions and 1 deletions

View File

@ -19,6 +19,7 @@ clap = "2.24"
handlebars = "0.27"
serde = "1.0"
serde_derive = "1.0"
error-chain = "0.10.0"
serde_json = "1.0"
pulldown-cmark = "0.0.14"
log = "0.3"

View File

@ -69,10 +69,13 @@
//!
//! Make sure to take a look at it.
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate serde_derive;
extern crate serde;
#[macro_use] extern crate serde_json;
#[macro_use]
extern crate serde_json;
extern crate handlebars;
extern crate pulldown_cmark;
@ -90,3 +93,12 @@ pub mod utils;
pub use book::MDBook;
pub use book::BookItem;
pub use renderer::Renderer;
/// The error types used through out this crate.
pub mod errors {
error_chain!{
foreign_links {
Io(::std::io::Error);
}
}
}