Cargo Features

[dependencies]
http-downloader = { version = "0.3.2", default-features = false, features = ["async-graphql", "all-extensions", "status-tracker", "speed-tracker", "speed-limiter", "breakpoint-resume", "bson-file-archiver", "async-stream"] }
default = tracing

默认开启 tokio tracing

async-graphql

一些类型作为 async-graphql 输入或者输出对象

Enables async-graphql ^5

Affects chunk_manager::DownloadChunkObject

all-extensions = breakpoint-resume, bson-file-archiver, speed-limiter, speed-tracker, status-tracker, tracing

全部扩展

status-tracker all-extensions? = tracing

下载状态追踪

Affects extensions::status_tracker

speed-tracker all-extensions? = tracing

下载速度追踪

Affects extensions::speed_tracker

speed-limiter all-extensions? = tracing

下载速度限制

Affects extensions::speed_limiter

breakpoint-resume all-extensions? bson-file-archiver? = tracing

断点续传

Affects downloader::BreakpointResume, downloader::HttpFileDownloader.breakpoint_resume, extensions::breakpoint_resume

bson-file-archiver all-extensions? = breakpoint-resume, bson, serde, tracing

断点续传,文件存储器

Enables serde of url

Affects extensions::bson_file_archiver

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

bson bson-file-archiver?

Enables bson

optional dependencies

serde bson-file-archiver?
tracing default all-extensions? breakpoint-resume? bson-file-archiver? speed-limiter? speed-tracker? status-tracker?
async-stream implicit feature

Enables async-stream

async-stream:

Asynchronous streams using async & await notation