Skip to content

Commit 2683235

Browse files
committed
fix: assure high-speed SHA1 assembly is only used in not on Windows (#917)
1 parent f961687 commit 2683235

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gix-features/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ progress-unit-human-numbers = ["prodash?/unit-human"]
2525
progress-unit-bytes = ["dep:bytesize", "prodash?/unit-bytes"]
2626

2727
## If set, walkdir iterators will be multi-threaded.
28-
fs-walkdir-parallel = [ "dep:jwalk", "dep:gix-utils" ]
28+
fs-walkdir-parallel = ["dep:jwalk", "dep:gix-utils"]
2929

3030
## Provide utilities suitable for working with the `std::fs::read_dir()`.
3131
fs-read-dir = ["dep:gix-utils"]
@@ -34,18 +34,18 @@ fs-read-dir = ["dep:gix-utils"]
3434
##
3535
## Note that this may have overhead as well, thus instrumentations should be used stategically, only providing coarse tracing by default and adding details
3636
## only where needed while marking them with the appropriate level.
37-
tracing = [ "gix-trace/tracing" ]
37+
tracing = ["gix-trace/tracing"]
3838

3939
## If enabled, detailed tracing is also emitted, which can greatly increase insights but at a cost.
40-
tracing-detail = [ "gix-trace/tracing-detail" ]
40+
tracing-detail = ["gix-trace/tracing-detail"]
4141

4242
## Use scoped threads and channels to parallelize common workloads on multiple objects. If enabled, it is used everywhere
4343
## where it makes sense.
4444
## As caches are likely to be used and instantiated per thread, more memory will be used on top of the costs for threads.
4545
## The `threading` module will contain thread-safe primitives for shared ownership and mutation, otherwise these will be their single threaded counterparts.
4646
## This way, single-threaded applications don't have to pay for threaded primitives.
4747
parallel = ["dep:crossbeam-channel",
48-
"dep:parking_lot"]
48+
"dep:parking_lot"]
4949
## If enabled, OnceCell will be made available for interior mutability either in sync or unsync forms.
5050
once_cell = ["dep:once_cell"]
5151
## Makes facilities of the `walkdir` crate partially available.
@@ -159,7 +159,7 @@ bstr = { version = "1.3.0", default-features = false }
159159

160160
# Assembly doesn't yet compile on MSVC on windows, but does on GNU, see https://github.com/RustCrypto/asm-hashes/issues/17
161161
# At this time, only aarch64, x86 and x86_64 are supported.
162-
[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies]
162+
[target.'cfg(all(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"), not(target_os = "windows")))'.dependencies]
163163
sha1 = { version = "0.10.0", optional = true, features = ["asm"] }
164164

165165
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)