diff --git a/Cargo.toml b/Cargo.toml index ced82e51..65ad1e62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index e91f18a4..1476f7db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); + } + } +} \ No newline at end of file