chore: remove tokio-futures facade crate (#1327)

This switches from using the tokio-futures facade to referencing
futures-* crates directly.
This commit is contained in:
Carl Lerche
2019-07-19 13:11:46 -07:00
committed by GitHub
parent b89ed00a0d
commit a99fa6e096
39 changed files with 69 additions and 187 deletions
+2 -2
View File
@@ -22,13 +22,13 @@ categories = ["asynchronous"]
publish = false
[features]
async-traits = ["tokio-futures"]
async-traits = ["futures-sink-preview"]
[dependencies]
async-util = { git = "https://github.com/tokio-rs/async" }
tokio-futures = { path = "../tokio-futures", optional = true }
fnv = "1.0.6"
futures-core-preview = { version = "0.3.0-alpha.17" }
futures-sink-preview = { version = "0.3.0-alpha.17", optional = true }
[dev-dependencies]
env_logger = { version = "0.5", default-features = false }
+1 -1
View File
@@ -214,7 +214,7 @@ impl<T> Sender<T> {
}
#[cfg(feature = "async-traits")]
impl<T> tokio_futures::Sink<T> for Sender<T> {
impl<T> futures_sink::Sink<T> for Sender<T> {
type Error = SendError;
fn poll_ready(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+1 -1
View File
@@ -130,7 +130,7 @@ impl<T> UnboundedSender<T> {
}
#[cfg(feature = "async-traits")]
impl<T> tokio_futures::Sink<T> for UnboundedSender<T> {
impl<T> futures_sink::Sink<T> for UnboundedSender<T> {
type Error = UnboundedSendError;
fn poll_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+1 -1
View File
@@ -368,7 +368,7 @@ impl<T> Sender<T> {
}
#[cfg(feature = "async-traits")]
impl<T> tokio_futures::Sink<T> for Sender<T> {
impl<T> futures_sink::Sink<T> for Sender<T> {
type Error = error::SendError<T>;
fn poll_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
+2 -2
View File
@@ -57,8 +57,8 @@ async fn async_send_recv_with_buffer() {
#[cfg(feature = "async-traits")]
fn send_sink_recv_with_buffer() {
use futures_core::Stream;
use futures_sink::Sink;
use pin_utils::pin_mut;
use tokio_futures::Sink;
let mut t1 = MockTask::new();
@@ -170,8 +170,8 @@ async fn async_send_recv_unbounded() {
#[cfg(feature = "async-traits")]
fn sink_send_recv_unbounded() {
use futures_core::Stream;
use futures_sink::Sink;
use pin_utils::pin_mut;
use tokio_futures::Sink;
let mut t1 = MockTask::new();