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-only traits for getrandom::Error
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
-
getrandom:
Feature to enable JavaScript bindings on wasm*-unknown-unknown
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.