Cargo Features
[dependencies]
scram-rs = { version = "0.13.2", default-features = false, features = ["use_ring", "exclude_sha1", "std", "without_async"] }
- default = std
-
The
std
feature is set by default wheneverscram-rs
is added without
somewhere in the dependency tree.default-features = false - use_ring
-
Adds a crate ring which implements pbkdf2, hmac and which is faster but less safe.
Affects
scram_hashing_sha1::sha1_ring_based
,scram_hashing_sha2::sha256_ring_based
,scram_hashing_sha5::sha512_ring_based
… - exclude_sha1
-
When added, removes SHA-1 from implementation. SHA-1 is unsafe and for this reason a +
is not supported to encourage developers not to use it. - std default
-
A program which includes this crate is based on standart library i.e std.
For non-std an alloc crate is exported.
Enabled by default. - without_async
-
Removes async implementations from the crate.