diff options
Diffstat (limited to 'tokio-fs')
-rw-r--r-- | tokio-fs/CHANGELOG.md | 4 | ||||
-rw-r--r-- | tokio-fs/Cargo.toml | 1 | ||||
-rw-r--r-- | tokio-fs/examples/std-echo.rs | 5 |
3 files changed, 8 insertions, 2 deletions
diff --git a/tokio-fs/CHANGELOG.md b/tokio-fs/CHANGELOG.md index 91f5c842..fb3e7dab 100644 --- a/tokio-fs/CHANGELOG.md +++ b/tokio-fs/CHANGELOG.md @@ -1,3 +1,7 @@ +# Unreleased + +* Use `tokio-codec` in examples + # 0.1.0 (May 2, 2018) * Initial release diff --git a/tokio-fs/Cargo.toml b/tokio-fs/Cargo.toml index 922eca16..a241e028 100644 --- a/tokio-fs/Cargo.toml +++ b/tokio-fs/Cargo.toml @@ -27,3 +27,4 @@ tokio-io = { version = "0.1.6", path = "../tokio-io" } rand = "0.4.2" tempdir = "0.3.7" tokio-io = { version = "0.1.6", path = "../tokio-io" } +tokio-codec = { version = "0.1.0", path = "../tokio-codec" } diff --git a/tokio-fs/examples/std-echo.rs b/tokio-fs/examples/std-echo.rs index cdfdf008..83efa66e 100644 --- a/tokio-fs/examples/std-echo.rs +++ b/tokio-fs/examples/std-echo.rs @@ -1,12 +1,13 @@ //! Echo everything received on STDIN to STDOUT. +#![deny(deprecated, warnings)] extern crate futures; extern crate tokio_fs; -extern crate tokio_io; +extern crate tokio_codec; extern crate tokio_threadpool; use tokio_fs::{stdin, stdout, stderr}; -use tokio_io::codec::{FramedRead, FramedWrite, LinesCodec}; +use tokio_codec::{FramedRead, FramedWrite, LinesCodec}; use tokio_threadpool::Builder; use futures::{Future, Stream, Sink}; |