blob: 3339621ec4254b51119b256fe585190a557566d9 [file] [log] [blame]
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2018"
name = "async-compression"
version = "0.4.2"
authors = [
"Wim Looman <[email protected]>",
"Allen Bui <[email protected]>",
]
description = """
Adaptors between compression crates and Rust's modern asynchronous IO types.
"""
readme = "README.md"
keywords = [
"compression",
"gzip",
"zstd",
"brotli",
"async",
]
categories = [
"compression",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Nullus157/async-compression"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[[example]]
name = "zlib_tokio_write"
required-features = [
"zlib",
"tokio",
]
[[example]]
name = "zstd_gzip"
required-features = [
"zstd",
"gzip",
"tokio",
]
[[test]]
name = "brotli"
required-features = ["brotli"]
[[test]]
name = "bzip2"
required-features = ["bzip2"]
[[test]]
name = "deflate"
required-features = ["deflate"]
[[test]]
name = "gzip"
required-features = ["gzip"]
[[test]]
name = "lzma"
required-features = ["lzma"]
[[test]]
name = "xz"
required-features = ["xz"]
[[test]]
name = "zlib"
required-features = ["zlib"]
[[test]]
name = "zstd"
required-features = ["zstd"]
[[test]]
name = "zstd-dict"
required-features = [
"zstd",
"tokio",
]
[dependencies.brotli]
version = "3.3"
features = ["std"]
optional = true
default-features = false
[dependencies.bzip2]
version = "0.4.4"
optional = true
[dependencies.deflate64]
version = "0.1.5"
optional = true
[dependencies.flate2]
version = "1.0.11"
optional = true
[dependencies.futures-core]
version = "0.3"
default-features = false
[dependencies.futures-io]
version = "0.3"
features = ["std"]
optional = true
default-features = false
[dependencies.libzstd]
version = "0.12"
optional = true
default-features = false
package = "zstd"
[dependencies.memchr]
version = "2"
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.tokio]
version = "1.24.2"
optional = true
default-features = false
[dependencies.xz2]
version = "0.1.6"
optional = true
[dependencies.zstd-safe]
version = "6"
optional = true
default-features = false
[features]
all = [
"all-implementations",
"all-algorithms",
]
all-algorithms = [
"brotli",
"bzip2",
"deflate",
"gzip",
"lzma",
"xz",
"zlib",
"zstd",
"deflate64",
]
all-implementations = [
"futures-io",
"tokio",
]
deflate = ["flate2"]
deflate64 = ["dep:deflate64"]
gzip = ["flate2"]
lzma = ["xz2"]
xz = ["xz2"]
zlib = ["flate2"]
zstd = [
"libzstd",
"zstd-safe",
]
zstdmt = [
"zstd",
"zstd-safe/zstdmt",
]