Added error-chain to lib.rs
This commit is contained in:
parent
b441066105
commit
6761442241
|
@ -19,6 +19,7 @@ clap = "2.24"
|
||||||
handlebars = "0.27"
|
handlebars = "0.27"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
|
error-chain = "0.10.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
pulldown-cmark = "0.0.14"
|
pulldown-cmark = "0.0.14"
|
||||||
log = "0.3"
|
log = "0.3"
|
||||||
|
|
14
src/lib.rs
14
src/lib.rs
|
@ -69,10 +69,13 @@
|
||||||
//!
|
//!
|
||||||
//! Make sure to take a look at it.
|
//! Make sure to take a look at it.
|
||||||
|
|
||||||
|
#[macro_use]
|
||||||
|
extern crate error_chain;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
#[macro_use] extern crate serde_json;
|
#[macro_use]
|
||||||
|
extern crate serde_json;
|
||||||
|
|
||||||
extern crate handlebars;
|
extern crate handlebars;
|
||||||
extern crate pulldown_cmark;
|
extern crate pulldown_cmark;
|
||||||
|
@ -90,3 +93,12 @@ pub mod utils;
|
||||||
pub use book::MDBook;
|
pub use book::MDBook;
|
||||||
pub use book::BookItem;
|
pub use book::BookItem;
|
||||||
pub use renderer::Renderer;
|
pub use renderer::Renderer;
|
||||||
|
|
||||||
|
/// The error types used through out this crate.
|
||||||
|
pub mod errors {
|
||||||
|
error_chain!{
|
||||||
|
foreign_links {
|
||||||
|
Io(::std::io::Error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue