Skip to content

Commit 0f11d56

Browse files
udoprogLucioFranco
authored andcommitted
More deprecation notices (relates #2036) (#2098)
1 parent 86de4ba commit 0f11d56

File tree

24 files changed

+120
-24
lines changed

24 files changed

+120
-24
lines changed

tokio-buf/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Asynchronous stream of byte buffers
44

5+
> **Note:** This crate has been **deprecated in tokio 0.2.x**.
6+
57
[Documenation](https://docs.rs/tokio-buf)
68

79
## Usage

tokio-buf/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
//! Asynchronous stream of bytes.
55
//!
6+
//! > **Note:** This crate has been **deprecated in tokio 0.2.x**.
7+
//!
68
//! This crate contains the `BufStream` trait and a number of combinators for
79
//! this trait. The trait is similar to `Stream` in the `futures` library, but
810
//! instead of yielding arbitrary values, it only yields types that implement

tokio-codec/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
Utilities for encoding and decoding frames.
44

5-
This crate is **deprecated in tokio 0.2.x** and has been moved into
6-
[`tokio_util::codec`] of the [`tokio-utils` crate] behind the `codec` feature flag.
5+
> **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved into
6+
> [`tokio_util::codec`] of the [`tokio-util` crate] behind the `codec` feature
7+
> flag.
78
8-
[`tokio::codec`]: https://docs.rs/tokio-util/latest/tokio_util/codec/index.html
9-
[`tokio-utils` crate]: https://docs.rs/tokio-util/latest/tokio_util
9+
[`tokio_util::codec`]: https://docs.rs/tokio-util/latest/tokio_util/codec/index.html
10+
[`tokio-util` crate]: https://docs.rs/tokio-util/latest/tokio_util
1011

1112
[Documentation](https://docs.rs/tokio-codec)
1213

tokio-codec/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
//! Utilities for encoding and decoding frames.
55
//!
6+
//! > **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved
7+
//! into [`tokio_util::codec`] of the [`tokio-util` crate] behind the `codec`
8+
//! feature flag.
9+
//!
10+
//! [`tokio_util::codec`]: https://docs.rs/tokio-util/latest/tokio_util/codec/index.html
11+
//! [`tokio-util` crate]: https://docs.rs/tokio-util/latest/tokio_util
12+
//!
613
//! Contains adapters to go from streams of bytes, [`AsyncRead`] and
714
//! [`AsyncWrite`], to framed streams implementing [`Sink`] and [`Stream`].
815
//! Framed streams are also known as [transports].

tokio-current-thread/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
Single threaded executor for Tokio.
44

5+
> **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved and
6+
> refactored into various places in the [`tokio`] crate. The closest replacement
7+
> is to make use of [`tokio::task::LocalSet::block_on`] which requires the
8+
> [`rt-util` feature].
9+
10+
[`tokio`]: https://docs.rs/tokio/latest/tokio/index.html
11+
[`tokio::task::LocalSet::block_on`]: https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html#method.block_on
12+
[`rt-util` feature]: https://docs.rs/tokio/latest/tokio/index.html#feature-flags
13+
514
[Documentation](https://docs.rs/tokio-current-thread/0.1.6/tokio_current_thread/)
615

716
## Overview

tokio-current-thread/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
//! A single-threaded executor which executes tasks on the same thread from which
55
//! they are spawned.
66
//!
7+
//! > **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved
8+
//! > and refactored into various places in the [`tokio`] crate. The closest
9+
//! replacement is to make use of [`tokio::task::LocalSet::block_on`] which
10+
//! requires the [`rt-util` feature].
11+
//!
12+
//! [`tokio`]: https://docs.rs/tokio/latest/tokio/index.html
13+
//! [`tokio::task::LocalSet::block_on`]: https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html#method.block_on
14+
//! [`rt-util` feature]: https://docs.rs/tokio/latest/tokio/index.html#feature-flags
715
//!
816
//! The crate provides:
917
//!

tokio-io/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Core I/O abstractions for the Tokio stack.
44

55
[![Build Status](https://travis-ci.org/tokio-rs/tokio-io.svg?branch=master)](https://travis-ci.org/tokio-rs/tokio-io)
66

7+
> **Note:** This crate has been **deprecated in tokio 0.2.x** and has been moved
8+
> into [`tokio::io`].
9+
10+
[`tokio::io`]: https://docs.rs/tokio/latest/tokio/io/index.html
11+
712
[Documentation](https://docs.rs/tokio-io/0.1.12/tokio_io)
813

914
## Usage

tokio-io/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
//! Core I/O traits and combinators when working with Tokio.
55
//!
6+
//! > **Note:** This crate has been **deprecated in tokio 0.2.x** and has been
7+
//! > moved into [`tokio::io`].
8+
//!
9+
//! [`tokio::io`]: https://docs.rs/tokio/latest/tokio/io/index.html
10+
//!
611
//! A description of the high-level I/O combinators can be [found online] in
712
//! addition to a description of the [low level details].
813
//!

tokio-reactor/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
Event loop that drives Tokio I/O resources.
44

5-
This crate is **deprecated in tokio 0.2.x** and has been moved and refactored
6-
into various places in the [`tokio::runtime`] and [`tokio::io`] modules of the
7-
[`tokio`] crate. The Reactor has also been renamed the "I/O Driver".
5+
> **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved and
6+
> refactored into various places in the [`tokio::runtime`] and [`tokio::io`]
7+
> modules of the [`tokio`] crate. The Reactor has also been renamed the
8+
> "I/O Driver".
89
910
[`tokio::runtime`]: https://docs.rs/tokio/latest/tokio/runtime/index.html
1011
[`tokio::io`]: https://docs.rs/tokio/latest/tokio/io/index.html

tokio-reactor/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33

44
//! Event loop that drives Tokio I/O resources.
55
//!
6+
//! > **Note:** This crate is **deprecated in tokio 0.2.x** and has been moved
7+
//! > and refactored into various places in the [`tokio::runtime`] and
8+
//! > [`tokio::io`] modules of the [`tokio`] crate. The Reactor has also been
9+
//! > renamed the "I/O Driver".
10+
//!
11+
//! [`tokio::runtime`]: https://docs.rs/tokio/latest/tokio/runtime/index.html
12+
//! [`tokio::io`]: https://docs.rs/tokio/latest/tokio/io/index.html
13+
//! [`tokio`]: https://docs.rs/tokio/latest/tokio/index.html
14+
//! [`io-driver` feature]: https://docs.rs/tokio/0.2.9/tokio/index.html#feature-flags
15+
//!
616
//! The reactor is the engine that drives asynchronous I/O resources (like TCP and
717
//! UDP sockets). It is backed by [`mio`] and acts as a bridge between [`mio`] and
818
//! [`futures`].

0 commit comments

Comments
 (0)