Cargo Features
[dependencies]
sha256 = { version = "1.5.0", default-features = false, features = ["native_openssl", "async"] }
- default = async
-
The
async
feature is set by default wheneversha256
is added without
somewhere in the dependency tree.default-features = false - native_openssl = openssl
-
Affects
sha256::TrySha256Digest.async_openssl_digest
,sha256::async_digest.try_async_openssl_digest
… - async default = tokio
-
Affects
sha256::TrySha256Digest.async_digest
,sha256::async_digest
…
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.