mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
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:
@@ -1,4 +1,5 @@
|
||||
use super::File;
|
||||
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
use std::pin::Pin;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use super::File;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::fs::File as StdFile;
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use super::File;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::fs::File as StdFile;
|
||||
use std::fs::Metadata;
|
||||
use std::future::Future;
|
||||
|
||||
@@ -16,13 +16,14 @@ pub use self::open::OpenFuture;
|
||||
pub use self::open_options::OpenOptions;
|
||||
pub use self::seek::SeekFuture;
|
||||
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
||||
use std::fs::{File as StdFile, Metadata, Permissions};
|
||||
use std::io::{self, Read, Seek, Write};
|
||||
use std::path::Path;
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
||||
/// A reference to an open file on the filesystem.
|
||||
///
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use super::File;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::fs::OpenOptions as StdOpenOptions;
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use super::OpenFuture;
|
||||
|
||||
use std::convert::From;
|
||||
use std::fs::OpenOptions as StdOpenOptions;
|
||||
use std::path::Path;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use super::File;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
use std::pin::Pin;
|
||||
|
||||
@@ -30,9 +30,6 @@
|
||||
//! [`AsyncRead`]: https://docs.rs/tokio-io/0.1/tokio_io/trait.AsyncRead.html
|
||||
//! [tokio-threadpool]: https://docs.rs/tokio-threadpool/0.1/tokio_threadpool
|
||||
|
||||
#[macro_use]
|
||||
extern crate tokio_futures;
|
||||
|
||||
mod create_dir;
|
||||
mod create_dir_all;
|
||||
pub mod file;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use super::blocking_io;
|
||||
|
||||
use std::fs::{self, Metadata};
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
use crate::{file, File};
|
||||
|
||||
use tokio_io::AsyncRead;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use std::{io, mem, path::Path};
|
||||
use tokio_io;
|
||||
use tokio_io::AsyncRead;
|
||||
|
||||
/// Creates a future which will open a file for reading and read the entire
|
||||
/// contents into a buffer and return said buffer.
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
use std::io::{self, Stderr as StdStderr, Write};
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
/// A handle to the standard error stream of a process.
|
||||
///
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
use tokio_io::AsyncRead;
|
||||
|
||||
use std::io::{self, Read, Stdin as StdStdin};
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use tokio_io::AsyncRead;
|
||||
|
||||
/// A handle to the standard input stream of a process.
|
||||
///
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
use std::io::{self, Stdout as StdStdout, Write};
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
/// A handle to the standard output stream of a process.
|
||||
///
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use super::blocking_io;
|
||||
|
||||
use std::fs::{self, Metadata};
|
||||
use std::future::Future;
|
||||
use std::io;
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
use crate::{file, File};
|
||||
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
use futures_core::ready;
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
use std::task::Poll;
|
||||
use std::{fmt, io, mem, path::Path};
|
||||
use tokio_io;
|
||||
use tokio_io::AsyncWrite;
|
||||
|
||||
/// Creates a future that will open a file for writing and write the entire
|
||||
/// contents of `contents` to it.
|
||||
|
||||
Reference in New Issue
Block a user