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
somewhere in the dependency tree.default-features = false - native-tls default
-
TLS 后端选项
使用系统原生 TLSEnables native-tls of reqwest
- openssl
-
使用 OpenSSL
Enables default-tls of reqwest
- rustls
-
使用纯 Rust 实现的 TLS
Enables rustls-tls of reqwest
- blake2 all? modern?
-
基础哈希算法
- blake3 all? modern?
- md5 all? legacy?
- sha1 all? legacy?
- sha2 default all? modern?
- sha3 default all? modern?
- 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.