Skip to content

Commit a37d984

Browse files
committed
Remove the direct postgres dependency
This isn't needed.
1 parent 245ef9e commit a37d984

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ documentation = "https://sfackler.github.io/rust-postgres-range/doc/v0.9.0/postg
99

1010
[dependencies]
1111
time = "0.1"
12-
postgres = "0.15"
1312
postgres-protocol = "0.3"
1413
chrono = "0.4.0"
1514
postgres-shared ={version = "0.4.0", features = ["with-chrono"] }

‎src/impls.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::error::Error;
2-
usepostgres::types::{FromSql,IsNull,Kind,ToSql,Type};
2+
usepostgres_shared::types::{FromSql,IsNull,Kind,ToSql,Type};
33
use postgres_protocol::{selfas protocol, types};
44

55
use{BoundSided,BoundType,Normalizable,Range,RangeBound};

‎src/lib.rs‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
//! Types dealing with ranges of values
22
#![doc(html_root_url = "https://sfackler.github.io/rust-postgres-range/doc/v0.8.2")]
33

4-
#[macro_use(to_sql_checked)]
5-
externcrate postgres;
64
externcrate postgres_protocol;
5+
#[macro_use(to_sql_checked)]
76
externcrate postgres_shared;
87
externcrate time;
98
externcrate chrono;
10-
use chrono::{DateTime,TimeZone};
119

10+
#[cfg(test)]
11+
externcrate postgres;
12+
13+
use chrono::{DateTime,TimeZone};
1214
use std::cmp::Ordering;
1315
use std::fmt;
1416
use std::i32;
@@ -158,7 +160,7 @@ impl Normalizable for Timespec{
158160
}
159161
}
160162

161-
impl<T>NormalizableforDateTime<T>
163+
impl<T>NormalizableforDateTime<T>
162164
whereT:TimeZone{
163165
fnnormalize<S>(bound:RangeBound<S,DateTime<T>>) -> RangeBound<S,DateTime<T>>
164166
where

0 commit comments

Comments
(0)