diff --git a/.travis.yml b/.travis.yml index 5ee102bd..da2840cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ sudo: required rust: - nightly - beta -- 1.8.0 +- 1.9.0 addons: postgresql: 9.4 before_script: diff --git a/Cargo.toml b/Cargo.toml index 2d23692f..28c19df2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,6 @@ byteorder = "0.5" log = "0.3" phf = "=0.7.15" hex = "0.2" -net2 = "0.2.16" rustc-serialize = { version = "0.3", optional = true } chrono = { version = "0.2.14", optional = true } openssl = { version = ">= 0.6.4, < 0.8", optional = true } diff --git a/README.md b/README.md index cfbf2335..ad9bea55 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ fn main() { ``` ## Requirements -* **Rust** - Rust-Postgres is developed against the 1.7 release of Rust +* **Rust** - Rust-Postgres is developed against the 1.9 release of Rust available on http://www.rust-lang.org. It should also compile against more recent releases. diff --git a/src/lib.rs b/src/lib.rs index d86d3496..9e380935 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,7 +51,6 @@ extern crate log; extern crate phf; #[cfg(feature = "unix_socket")] extern crate unix_socket; -extern crate net2; use bufstream::BufStream; use md5::Md5; diff --git a/src/priv_io.rs b/src/priv_io.rs index b17257da..4d540682 100644 --- a/src/priv_io.rs +++ b/src/priv_io.rs @@ -1,7 +1,4 @@ use byteorder::ReadBytesExt; -// this import needs to stay to support pre 1.9 users -#[allow(unused_imports)] -use net2::TcpStreamExt; use std::error::Error; use std::io; use std::io::prelude::*;