aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2019-03-29 18:11:47 -0400
committerNathan Perry <avaglir@gmail.com>2019-03-29 18:11:47 -0400
commit4b57515192631b29c0e95847bab5667d70353435 (patch)
treeceddc5713842e030f7fe2c14130e1e070cf06005 /src/main.rs
parent122e3e22330d961fc3f3f35c117f8c64d592bf36 (diff)
improved stats output
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 1d1c6dd..d3458b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,7 +7,7 @@
#![feature(box_syntax, box_patterns)]
extern crate chrono;
-#[cfg(feature = "diesel")]
+#[cfg(feature = "db")]
#[macro_use] extern crate diesel;
extern crate dotenv;
#[macro_use] extern crate dotenv_codegen;
@@ -20,6 +20,8 @@ extern crate fnv;
#[macro_use] extern crate log;
extern crate pest;
#[macro_use] extern crate pest_derive;
+#[cfg(feature = "db")] extern crate postgres;
+#[cfg(feature = "db")] extern crate r2d2_postgres;
extern crate rand;
extern crate regex;
extern crate reqwest;