Cargo Features

[dependencies]
robust_downloader = { version = "0.0.12", default-features = false, features = ["native-tls", "openssl", "rustls", "blake2", "blake3", "md5", "sha1", "sha2", "sha3", "all", "legacy", "modern"] }
default = native-tls, sha2, sha3

These default features are set whenever robust_downloader is added without default-features = false somewhere in the dependency tree.

native-tls default

TLS 后端选项
使用系统原生 TLS

Enables native-tls of reqwest

openssl

使用 OpenSSL

Enables default-tls of reqwest

rustls

使用纯 Rust 实现的 TLS

Enables rustls-tls of reqwest

blake2 all? modern?

基础哈希算法

Enables blake2 of hashery

blake3 all? modern?

Enables blake3 of hashery

md5 all? legacy?

Enables md5 of hashery

sha1 all? legacy?

Enables sha1 of hashery

sha2 default all? modern?

Enables sha2 of hashery

sha3 default all? modern?

Enables sha3 of hashery

all = blake2, blake3, md5, sha1, sha2, sha3

算法组合
启用所有算法

legacy = md5, sha1

传统算法

modern = blake2, blake3, sha2, sha3

现代/安全的算法

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.

hashery blake2? blake3? md5? sha1? sha2 sha3