mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
only use diesel::r2d2 feature. no need r2d2_diesel create
This commit is contained in:
parent
2a269f1111
commit
56a31ea0ee
@ -15,7 +15,6 @@ serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
serde_derive = "1.0"
|
||||
|
||||
diesel = { version = "1.0", features = ["sqlite"] }
|
||||
diesel = { version = "^1.1.0", features = ["sqlite", "r2d2"] }
|
||||
r2d2 = "0.8"
|
||||
r2d2-diesel = "1.0"
|
||||
dotenv = "0.10"
|
||||
|
@ -4,8 +4,7 @@ use diesel;
|
||||
use actix_web::*;
|
||||
use actix::prelude::*;
|
||||
use diesel::prelude::*;
|
||||
use r2d2::Pool;
|
||||
use r2d2_diesel::ConnectionManager;
|
||||
use diesel::r2d2::{ Pool, ConnectionManager };
|
||||
|
||||
use models;
|
||||
use schema;
|
||||
|
@ -11,7 +11,6 @@ extern crate serde_derive;
|
||||
#[macro_use]
|
||||
extern crate diesel;
|
||||
extern crate r2d2;
|
||||
extern crate r2d2_diesel;
|
||||
extern crate uuid;
|
||||
extern crate futures;
|
||||
extern crate actix;
|
||||
@ -23,7 +22,7 @@ use actix_web::{http, server, middleware,
|
||||
App, Path, State, HttpResponse, AsyncResponder, FutureResponse};
|
||||
|
||||
use diesel::prelude::*;
|
||||
use r2d2_diesel::ConnectionManager;
|
||||
use diesel::r2d2::{ Pool, ConnectionManager };
|
||||
use futures::future::Future;
|
||||
|
||||
mod db;
|
||||
|
Loading…
Reference in New Issue
Block a user