Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),

## Unreleased

- Remove Tokio v0.3.x support (`tokio-03` crate feature).

## 0.3.15 - 2022-10-08

- `Level::Default::into_zstd()` now returns libzstd's default value `3`.
Expand Down
68 changes: 1 addition & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
# groups
default = []
all = ["all-implementations", "all-algorithms"]
all-implementations = ["futures-io", "stream", "tokio-02", "tokio-03", "tokio"]
all-implementations = ["futures-io", "stream", "tokio-02", "tokio"]
all-algorithms = ["brotli", "bzip2", "deflate", "gzip", "lzma", "xz", "zlib", "zstd"]

# algorithms
Expand Down Expand Up @@ -48,7 +48,6 @@ libzstd = { package = "zstd", version = "0.11.1", optional = true, default-featu
zstd-safe = { version = "5.0.1", optional = true, default-features = false }
memchr = "2.2.1"
tokio-02 = { package = "tokio", version = "0.2.21", optional = true, default-features = false }
tokio-03 = { package = "tokio", version = "0.3.0", optional = true, default-features = false }
tokio = { version = "1.0.0", optional = true, default-features = false }

[dev-dependencies]
Expand All @@ -59,14 +58,9 @@ futures = "0.3.5"
futures-test = "0.3.5"
ntest = "0.8.1"
bytes-05 = { package = "bytes", version = "0.5.0" }
bytes-06 = { package = "bytes", version = "0.6.0" }
bytes = "1.0.0"
tokio-02 = { package = "tokio", version = "0.2.21", default-features = false, features = ["io-util", "stream", "macros", "io-std"] }
tokio-03 = { package = "tokio", version = "0.3.0", default-features = false, features = ["io-util", "stream"] }
tokio = { version = "1.0.0", default-features = false, features = ["io-util"] }
tokio-util-03 = { package = "tokio-util", version = "0.3.0", default-features = false, features = ["codec"] }
tokio-util-04 = { package = "tokio-util", version = "0.4.0", default-features = false, features = ["io"] }
tokio-util-05 = { package = "tokio-util", version = "0.5.0", default-features = false, features = ["io"] }
tokio-util-06 = { package = "tokio-util", version = "0.6.0", default-features = false, features = ["io"] }

[[test]]
Expand Down
11 changes: 0 additions & 11 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@
not(feature = "tokio-02"),
doc = "`tokio-02` (*inactive*) | `tokio::io::AsyncBufRead`, `tokio::io::AsyncWrite`"
)]
#![cfg_attr(
feature = "tokio-03",
doc = "[`tokio-03`](crate::tokio_03) | [`tokio::io::AsyncBufRead`](::tokio_03::io::AsyncBufRead), [`tokio::io::AsyncWrite`](::tokio_03::io::AsyncWrite)"
)]
#![cfg_attr(
not(feature = "tokio-03"),
doc = "`tokio-03` (*inactive*) | `tokio::io::AsyncBufRead`, `tokio::io::AsyncWrite`"
)]
#![cfg_attr(
feature = "tokio",
doc = "[`tokio`](crate::tokio) | [`tokio::io::AsyncBufRead`](::tokio::io::AsyncBufRead), [`tokio::io::AsyncWrite`](::tokio::io::AsyncWrite)"
Expand Down Expand Up @@ -178,9 +170,6 @@ pub mod tokio;
#[cfg(feature = "tokio-02")]
#[cfg_attr(docsrs, doc(cfg(feature = "tokio-02")))]
pub mod tokio_02;
#[cfg(feature = "tokio-03")]
#[cfg_attr(docsrs, doc(cfg(feature = "tokio-03")))]
pub mod tokio_03;

mod unshared;
mod util;
Expand Down
36 changes: 0 additions & 36 deletions src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,6 @@
//! ).map_ok(|bytes| bytes.freeze())
//! }
//!
//! /// Upgrade replacement with `tokio` v0.3 and `bytes` v0.5 using `tokio-util` v0.4
//! fn tokio_03_bytes_05(
//! input: impl Stream<Item = Result<bytes_05::Bytes>>,
//! ) -> impl Stream<Item = Result<bytes_05::Bytes>> {
//! tokio_util_04::io::ReaderStream::new(
//! async_compression::tokio_03::bufread::GzipEncoder::new(
//! tokio_util_04::io::StreamReader::new(input),
//! ),
//! )
//! }
//!
//! /// Upgrade replacement with `tokio` v0.3 and `bytes` v0.6 using `tokio-util` v0.5
//! fn tokio_03_bytes_06(
//! input: impl Stream<Item = Result<bytes_06::Bytes>>,
//! ) -> impl Stream<Item = Result<bytes_06::Bytes>> {
//! tokio_util_05::io::ReaderStream::new(
//! async_compression::tokio_03::bufread::GzipEncoder::new(
//! tokio_util_05::io::StreamReader::new(input),
//! ),
//! )
//! }
//!
//! /// Upgrade replacement with `tokio` v1.0 and `bytes` v1.0 using `tokio-util` v0.6
//! fn tokio_bytes(
//! input: impl Stream<Item = Result<bytes::Bytes>>,
Expand Down Expand Up @@ -109,20 +87,6 @@
//! # );
//! # assert_eq!(
//! # expected,
//! # tokio_03_bytes_05(data().map_ok(bytes_05::Bytes::from))
//! # .map_ok(|bytes| bytes.as_ref().into())
//! # .try_collect::<Vec<Vec<u8>>>()
//! # .await?,
//! # );
//! # assert_eq!(
//! # expected,
//! # tokio_03_bytes_06(data().map_ok(bytes_06::Bytes::from))
//! # .map_ok(|bytes| bytes.as_ref().into())
//! # .try_collect::<Vec<Vec<u8>>>()
//! # .await?,
//! # );
//! # assert_eq!(
//! # expected,
//! # tokio_bytes(data().map_ok(bytes::Bytes::from))
//! # .map_ok(|bytes| bytes.as_ref().into())
//! # .try_collect::<Vec<Vec<u8>>>()
Expand Down
145 changes: 0 additions & 145 deletions src/tokio_03/bufread/generic/decoder.rs

This file was deleted.

Loading