1 | [package] |
2 | name = "sha1" |
3 | version = "0.10.6" |
4 | description = "SHA-1 hash function" |
5 | authors = ["RustCrypto Developers" ] |
6 | license = "MIT OR Apache-2.0" |
7 | readme = "README.md" |
8 | edition = "2018" |
9 | documentation = "https://docs.rs/sha1" |
10 | repository = "https://github.com/RustCrypto/hashes" |
11 | keywords = ["crypto" , "sha1" , "hash" , "digest" ] |
12 | categories = ["cryptography" , "no-std" ] |
13 | |
14 | [dependencies] |
15 | digest = "0.10.7" |
16 | cfg-if = "1.0" |
17 | |
18 | [target.'cfg(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"))'.dependencies] |
19 | cpufeatures = "0.2" |
20 | sha1-asm = { version = "0.5" , optional = true } |
21 | |
22 | [dev-dependencies] |
23 | digest = { version = "0.10.7" , features = ["dev" ] } |
24 | hex-literal = "0.2.2" |
25 | |
26 | [features] |
27 | default = ["std" ] |
28 | std = ["digest/std" ] |
29 | oid = ["digest/oid" ] # Enable OID support. WARNING: Bumps MSRV to 1.57 |
30 | asm = ["sha1-asm" ] # WARNING: this feature SHOULD NOT be enabled by library crates |
31 | # Use assembly backend for LoongArch64 targets |
32 | # WARNING: Bumps MSRV to 1.72. This feature SHOULD NOT be enabled by library crates |
33 | loongarch64_asm = [] |
34 | compress = [] # Expose compress function |
35 | force-soft = [] # Force software implementation |
36 | |
37 | [package.metadata.docs.rs] |
38 | all-features = true |
39 | rustdoc-args = ["--cfg" , "docsrs" ] |
40 | |