Cargo Features
[dependencies]
bcrypt = { version = "0.15.1", 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::hash_with_result
,bcrypt::hash_with_salt
,bcrypt::verify
… - alloc = getrandom
-
Affects
bcrypt::HashParts
,bcrypt::hash
,bcrypt::hash_with_result
,bcrypt::hash_with_salt
,bcrypt::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.