[package]
name = "download-async"
description = "A fast and convenient wrapper around hyper with https support."
version = "0.10.8"
license = "MIT"
authors = ["SonnyX <randy@vonderweide.nl>"]
repository = "https://github.com/SonnyX/download-async/"
keywords = ["download", "async", "http", "https"]
categories = ["network-programming", "web-programming::http-client", "web-programming::https-client"]
edition = "2018"
include = [
"Cargo.toml",
"src/**",
]
[dependencies]
log = "0.4"
http = "0.2"
async-trait = "0.1"
native-tls = "0.2.8"
tower = "0.4"
hyper = { version="0.14", features = ["client", "tcp", "http1", "http2", "stream"] }
hyper-tls = "0.5"
tokio = { version = "1.16", features = ["rt"] }
pin-project-lite = "0.2.8"
http-body = "0.4.4"
bytes = "1.1.0"
futures-core = { version = "0.3.21", default-features = false }
futures-util = { version = "0.3.21", default-features = false }
async-compression = { version = "0.3.12", default-features = false, features = ["tokio"], optional = true }
tokio-util = { version = "0.6.9", default-features = false, features = ["codec", "io"], optional = true }
[dev-dependencies]
tokio = { version = "1.16", features = ["rt", "macros", "rt-multi-thread"] }
futures = "0.3"
[features]
default = ["gzip", "brotli", "deflate"]
gzip = ["async-compression", "async-compression/gzip", "tokio-util"]
brotli = ["async-compression", "async-compression/brotli", "tokio-util"]
deflate = ["async-compression", "async-compression/zlib", "tokio-util"]
[[example]]
name = "progress"
path = "examples/progress.rs"
[[example]]
name = "download"
path = "examples/download.rs"