Cargo Features
[dependencies]
bcrypt = { version = "0.16.0", default-features = false, features = ["std", "alloc", "js", "zeroize"] }
- default = std, zeroize
-
These default features are set whenever
bcrypt
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of base64 and getrandom
getrandom:
Implement std::error::Error for getrandom::Error and use std to retrieve OS error descriptions
Affects
bcrypt::HashParts
,bcrypt::hash
,bcrypt::non_truncating_hash
,bcrypt::hash_with_result
,bcrypt::non_truncating_hash_with_result
,bcrypt::hash_with_salt
,bcrypt::non_truncating_hash_with_salt
,bcrypt::verify
,bcrypt::non_truncating_verify
… - alloc = getrandom
-
Affects
bcrypt::HashParts
,bcrypt::hash
,bcrypt::non_truncating_hash
,bcrypt::hash_with_result
,bcrypt::non_truncating_hash_with_result
,bcrypt::hash_with_salt
,bcrypt::non_truncating_hash_with_salt
,bcrypt::verify
,bcrypt::non_truncating_verify
… - js
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.