-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change removes all references to `Stream` from within the `tokio` crate and moves them into a new `tokio-stream` crate. Most types have had their `impl Stream` removed as well in-favor of their inherent methods. Closes #2870
- Loading branch information
1 parent
3f29212
commit 42af6ad
Showing
94 changed files
with
1,168 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ members = [ | |
"tokio", | ||
"tokio-macros", | ||
"tokio-test", | ||
"tokio-stream", | ||
"tokio-util", | ||
|
||
# Internal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "tokio-stream" | ||
# When releasing to crates.io: | ||
# - Remove path dependencies | ||
# - Update html_root_url. | ||
# - Update doc url | ||
# - Cargo.toml | ||
# - Update CHANGELOG.md. | ||
# - Create "tokio-stream-0.1.x" git tag. | ||
version = "0.1.0" | ||
edition = "2018" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/tokio-rs/tokio" | ||
homepage = "https://tokio.rs" | ||
documentation = "https://docs.rs/tokio-stream/0.1.0/tokio_stream" | ||
description = """ | ||
Utilities to work with `Stream` and `tokio`. | ||
""" | ||
categories = ["asynchronous"] | ||
publish = false | ||
|
||
[dependencies] | ||
futures-core = { version = "0.3.0" } | ||
pin-project-lite = "0.2.0" | ||
rand = "0.7.3" | ||
tokio = { version = "1.0", path = "../tokio", features = ["sync"] } | ||
async-stream = "0.3" | ||
|
||
[dev-dependencies] | ||
tokio = { version = "1.0", path = "../tokio", features = ["full"] } | ||
tokio-test = { path = "../tokio-test" } | ||
futures = { version = "0.3", default-features = false } | ||
|
||
proptest = "0.10.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::future::Future; | ||
use core::marker::PhantomPinned; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::future::Future; | ||
use core::marker::PhantomPinned; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::future::Future; | ||
use core::marker::PhantomPinned; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::fmt; | ||
use core::pin::Pin; | ||
|
2 changes: 1 addition & 1 deletion
2
tokio/src/stream/filter_map.rs → tokio-stream/src/filter_map.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::fmt; | ||
use core::pin::Pin; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use core::future::Future; | ||
use core::marker::PhantomPinned; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use crate::stream::Stream; | ||
use crate::Stream; | ||
|
||
use pin_project_lite::pin_project; | ||
use std::pin::Pin; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.