# 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 = "2021" name = "http-downloader" version = "0.3.2" authors = ["ycysdf"] description = "支持多线程与断点续传的 Http 下载库" homepage = "https://github.com/ycysdf/http-downloader" readme = "README.md" keywords = [ "http", "download", "network", ] categories = ["web-programming::http-client"] license = "MIT" repository = "https://github.com/ycysdf/http-downloader" [dependencies.anyhow] version = "1" [dependencies.async-graphql] version = "5" optional = true [dependencies.async-stream] version = "0.3" optional = true [dependencies.async-trait] version = "0.1" [dependencies.bson] version = "2.3.0" optional = true [dependencies.bytes] version = "1.3" [dependencies.futures-util] version = "0.3" [dependencies.headers] version = "0.3" [dependencies.parking_lot] version = "0.12" [dependencies.reqwest] version = "0.11.13" features = [ "default-tls", "stream", ] [dependencies.serde] version = "1.0" optional = true [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = [ "rt", "macros", ] [dependencies.tokio-util] version = "0.7" features = [] [dependencies.tracing] version = "0.1" optional = true [dependencies.url] version = "2" [dev-dependencies.bson] version = "2.3.0" [dev-dependencies.serde] version = "1.0" [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" [features] all-extensions = [ "status-tracker", "speed-limiter", "speed-tracker", "breakpoint-resume", "tracing", "bson-file-archiver", ] async-graphql = ["dep:async-graphql"] breakpoint-resume = ["tracing"] bson-file-archiver = [ "breakpoint-resume", "tracing", "serde", "bson", "url/serde", ] default = ["tracing"] speed-limiter = ["tracing"] speed-tracker = ["tracing"] status-tracker = ["tracing"]