Cargo Features
[dependencies]
sha-1 = { version = "0.10.1", default-features = false, features = ["std", "oid", "asm", "compress", "force-soft"] }
- default = std
-
The
std
feature is set by default wheneversha-1
is added without
somewhere in the dependency tree.default-features = false - std default
- oid
-
Enable OID support. WARNING: Bumps MSRV to 1.57
- asm = sha1-asm
-
WARNING: this feature SHOULD NOT be enabled by library crates
- compress
-
Expose compress function
- force-soft
-
Force software implementation
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.