From 1e757529d7c67d8e4a2ba9cfa8a2a080d59c28fa Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Thu, 29 Jun 2017 20:05:57 +0800 Subject: [PATCH] Added pretty-assertions as a dev dependency (makes comparing deep structures easier) --- Cargo.toml | 1 + src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 65ad1e62..e8375300 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,7 @@ ws = { version = "0.7", optional = true} # Tests [dev-dependencies] tempdir = "0.3.4" +pretty_assertions = "0.2.1" [build-dependencies] error-chain = "0.10" diff --git a/src/lib.rs b/src/lib.rs index 16ac0ed7..8eac6b46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,13 +76,17 @@ extern crate serde_derive; extern crate serde; #[macro_use] extern crate serde_json; +#[macro_use] +extern crate log; extern crate handlebars; extern crate pulldown_cmark; extern crate regex; +#[cfg(test)] #[macro_use] -extern crate log; +extern crate pretty_assertions; + pub mod book; pub mod config; mod parse;