1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#[cfg(feature = "futures_io")]
pub mod futures_io {
    pub use ::futures_io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite};
}

#[cfg(feature = "tokio02_io")]
pub mod tokio02_io {
    pub use ::tokio02::io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite};
}

#[cfg(feature = "tokio_io")]
pub mod tokio_io {
    pub use tokio::io::{AsyncBufRead, AsyncRead, AsyncSeek, AsyncWrite};

    pub mod ext {
        pub use tokio::io::ReadBuf;
    }
}

#[cfg(all(
    feature = "futures_io",
    not(feature = "tokio02_io"),
    not(feature = "tokio_io")
))]
pub use self::futures_io::*;

#[cfg(all(
    not(feature = "futures_io"),
    feature = "tokio02_io",
    not(feature = "tokio_io")
))]
pub use self::tokio02_io::*;

#[cfg(all(
    not(feature = "futures_io"),
    not(feature = "tokio02_io"),
    feature = "tokio_io"
))]
pub use self::tokio_io::*;

//
//
//
#[cfg(feature = "futures_util_io")]
pub mod futures_util_io {
    pub use futures_util::io::Cursor;
    pub use futures_util::io::{
        AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, BufReader,
    };
}

#[cfg(feature = "futures_lite_io")]
pub mod futures_lite_io {
    pub use futures_lite::io::Cursor;
    pub use futures_lite::io::{
        AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, BufReader,
    };
}

#[cfg(feature = "tokio02_io_util")]
pub mod tokio02_io_util {
    pub use std::io::Cursor;
    pub use tokio02::io::{AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, BufReader};
}

#[cfg(feature = "tokio_io_util")]
pub mod tokio_io_util {
    pub use std::io::Cursor;
    pub use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, BufReader};
}

#[cfg(all(
    feature = "futures_util_io",
    not(feature = "futures_lite_io"),
    not(feature = "tokio02_io_util"),
    not(feature = "tokio_io_util"),
    feature = "futures_io",
    not(feature = "tokio02_io"),
    not(feature = "tokio_io")
))]
pub use self::futures_util_io::*;

#[cfg(all(
    not(feature = "futures_util_io"),
    feature = "futures_lite_io",
    not(feature = "tokio02_io_util"),
    not(feature = "tokio_io_util"),
    feature = "futures_io",
    not(feature = "tokio02_io"),
    not(feature = "tokio_io")
))]
pub use self::futures_lite_io::*;

#[cfg(all(
    not(feature = "futures_util_io"),
    not(feature = "futures_lite_io"),
    feature = "tokio02_io_util",
    not(feature = "tokio_io_util"),
    not(feature = "futures_io"),
    feature = "tokio02_io",
    not(feature = "tokio_io")
))]
pub use self::tokio02_io_util::*;

#[cfg(all(
    not(feature = "futures_util_io"),
    not(feature = "futures_lite_io"),
    not(feature = "tokio02_io_util"),
    feature = "tokio_io_util",
    not(feature = "futures_io"),
    not(feature = "tokio02_io"),
    feature = "tokio_io"
))]
pub use self::tokio_io_util::*;