From 5952c3adb0a67f096313f9405bdbd5a16297e809 Mon Sep 17 00:00:00 2001 From: TyOverby Date: Wed, 28 Jan 2015 13:01:11 -0800 Subject: [PATCH] update for stdlib --- Cargo.toml | 4 ++-- src/lib.rs | 6 +++--- src/reader.rs | 2 +- src/writer.rs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d2296e..f1bd523 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bincode" -version = "0.0.7" +version = "0.0.8" authors = ["Ty Overby ", "Francesco Mazzoli "] repository = "https://github.com/TyOverby/bincode" @@ -11,4 +11,4 @@ license = "MIT" description = "A binary serialization / deserialization strategy and implementation." [dependencies] -rustc-serialize = "0.2.7" +rustc-serialize = "0.2.10" diff --git a/src/lib.rs b/src/lib.rs index f809e88..a172cb6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ extern crate "rustc-serialize" as rustc_serialize; -use std::io::{Buffer, MemWriter}; +use std::old_io::{Buffer, MemWriter}; use rustc_serialize::{Encodable, Decodable}; pub use writer::{EncoderWriter, EncodingResult, EncodingError}; @@ -47,8 +47,8 @@ mod reader; ///! ```rust ///! #![allow(unstable)] ///! extern crate bincode; -///! use std::io::pipe::PipeStream; -///! use std::io::BufferedReader; +///! use std::old_io::pipe::PipeStream; +///! use std::old_io::BufferedReader; ///! fn main() { ///! // The pipes that we will be using to send values across. ///! let streams = PipeStream::pair().unwrap(); diff --git a/src/reader.rs b/src/reader.rs index c9c4169..55d0649 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -1,4 +1,4 @@ -use std::io::{Buffer, Reader, IoError}; +use std::old_io::{Buffer, Reader, IoError}; use std::num::{cast, NumCast}; use std::error::{Error, FromError}; use std::fmt; diff --git a/src/writer.rs b/src/writer.rs index 340d433..e6229c0 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -1,4 +1,4 @@ -use std::io::{Writer, IoError}; +use std::old_io::{Writer, IoError}; use std::error::Error; use std::num::Int; use std::fmt;