From a6c5d3014d50bd6ee075f774ff6a4878a9e02e56 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 5 May 2015 11:40:14 -0700 Subject: [PATCH] Switch to out-of-std bufstream --- Cargo.toml | 1 + src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3d1639cf..c826c900 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ log = "0.3" rustc-serialize = "0.3" byteorder = "0.3" debug-builders = "0.1" +bufstream = "0.1" uuid = { version = "0.1", optional = true } unix_socket = { version = "0.3", optional = true } time = { version = "0.1.14", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 65e604d6..e859c2fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,6 +45,7 @@ #![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc")] #![warn(missing_docs)] +extern crate bufstream; extern crate byteorder; #[macro_use] extern crate log; @@ -55,6 +56,7 @@ extern crate rustc_serialize as serialize; extern crate unix_socket; extern crate debug_builders; +use bufstream::BufStream; use debug_builders::DebugStruct; use openssl::crypto::hash::{self, Hasher}; use openssl::ssl::{SslContext, MaybeSslStream}; @@ -65,7 +67,7 @@ use std::cell::{Cell, RefCell}; use std::collections::{VecDeque, HashMap}; use std::fmt; use std::iter::IntoIterator; -use std::io::{self, BufStream}; +use std::io; use std::io::prelude::*; use std::mem; use std::slice;