Skip to content

Conversation

@therustmonk
Copy link
Contributor

With current version we have to duplicate dependencies r2d2_postgres uses.

extern crate r2d2;
extern crate r2d2_postgres;
extern crate postgres;

and Cargo.toml:

[dependencies]
r2d2 = ">= 0.6, < 0.8"
postgres = "0.11"
r2d2_postgres = "0.10.1"

Sometimes it gives an error:

    = note: expected type `&[&postgres::types::ToSql]`
    = note:    found type `&[&postgres::types::ToSql]`
note: Perhaps two different versions of crate `postgres` are being used?

This PR makes possible to use one dependency only:

extern crate r2d2_postgres;
use r2d2_postgres::r2d2;
use r2d2_postgres::postgres;
[dependencies]
r2d2_postgres = "0.10.1"

@sfackler sfackler merged commit 02a830a into rust-postgres:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants