@@ -50,7 +50,7 @@ zlib-rust-backend = ["flate2/rust_backend"]
50
50
# # A multi-crate implementation that can use hardware acceleration, thus bearing the potential for up to 2Gb/s throughput on
51
51
# # CPUs that support it, like AMD Ryzen or Intel Core i3, as well as Apple Silicon like M1.
52
52
# # Takes precedence over `rustsha1` if both are specified.
53
- fast-sha1 = [" sha-1 " ]
53
+ fast-sha1 = [" sha1 " ]
54
54
# # A standard and well performing pure Rust implementation of Sha1. Will significantly slow down various git operations.
55
55
rustsha1 = [" sha1_smol" ]
56
56
@@ -106,7 +106,7 @@ walkdir = { version = "2.3.2", optional = true } # used when parallel is off
106
106
# hashing and 'fast-sha1' feature
107
107
sha1_smol = { version = " 1.0.0" , optional = true }
108
108
crc32fast = { version = " 1.2.1" , optional = true }
109
- sha-1 = { version = " 0.10.0" , optional = true }
109
+ sha1 = { version = " 0.10.0" , optional = true }
110
110
111
111
# progress
112
112
prodash = { version = " 19.0.0" , optional = true , default-features = false , features = [" unit-bytes" , " unit-human" ] }
@@ -133,10 +133,9 @@ bstr = { version = "0.2.15", default-features = false }
133
133
134
134
135
135
# Assembly doesn't yet compile on MSVC on windows, but does on GNU, see https://github.com/RustCrypto/asm-hashes/issues/17
136
- # TODO: potentially include it only for certain architectures
137
- # [target.'cfg(all(any(target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies]
138
- [target .'cfg(not(target_env = "msvc"))' .dependencies ]
139
- sha-1 = { version = " 0.10.0" , optional = true , features = [" asm" ] }
136
+ # At this time, only aarch64, x86 and x86_64 are supported.
137
+ [target .'cfg(all(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))' .dependencies ]
138
+ sha1 = { version = " 0.10.0" , optional = true , features = [" asm" ] }
140
139
141
140
[package .metadata .docs .rs ]
142
141
all-features = true
0 commit comments