aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 11:04:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 11:04:23 -0700
commit9a303b182a32d2908caaaf5d24c7bc1ff3831505 (patch)
tree6867fc39395794127f30ecd375ec96a077160d32 /rust/src/lib.rs
parent0319c8f531139c2b4c49570a499894d7200760f5 (diff)
downloadfatcat-9a303b182a32d2908caaaf5d24c7bc1ff3831505.tar.gz
fatcat-9a303b182a32d2908caaaf5d24c7bc1ff3831505.zip
broken diesel+iron integration
Diffstat (limited to 'rust/src/lib.rs')
-rw-r--r--rust/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index 55040f0c..fecea06e 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -2,6 +2,7 @@
extern crate fatcat_api;
extern crate chrono;
extern crate diesel;
+extern crate iron_diesel_middleware;
extern crate dotenv;
extern crate futures;
#[macro_use] extern crate hyper;
@@ -23,6 +24,7 @@ use std::env;
use hyper::header::Headers;
use iron::{Request, Response};
use iron::middleware::AfterMiddleware;
+use iron_diesel_middleware::{DieselMiddleware, DieselPooledConnection, DieselReqExt};
pub fn establish_connection() -> PgConnection {
dotenv().ok();