Skip to content

Commit

Permalink
exclude asm feature for fast-sha1 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 11, 2022
1 parent 40622aa commit 619505e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -82,7 +82,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.46.0
toolchain: 1.56.0
override: true

- name: Version features
Expand Down
13 changes: 11 additions & 2 deletions Cargo.toml
Expand Up @@ -13,7 +13,7 @@ categories = [
]
description = "A library to generate and parse UUIDs."
documentation = "https://docs.rs/uuid"
edition = "2018"
edition = "2021"
exclude = [
".github/**",
".travis.yml",
Expand Down Expand Up @@ -100,7 +100,16 @@ optional = true
version = "1"

# Private
[dependencies.sha1-rust-crypto]
# NOTE: On Windows (MSVC) we can't use the `asm` feature yet
# See: https://github.com/RustCrypto/asm-hashes/issues/17
[target.'cfg(windows)'.dependencies.sha1-rust-crypto]
package = "sha1"
default-features = false
optional = true
version = "0.10"

# Private
[target.'cfg(not(windows))'.dependencies.sha1-rust-crypto]
package = "sha1"
default-features = false
features = ["asm"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# `uuid`

[![Latest Version](https://img.shields.io/crates/v/uuid.svg)](https://crates.io/crates/uuid)
![Minimum rustc version](https://img.shields.io/badge/rustc-1.46.0+-yellow.svg)
![Minimum rustc version](https://img.shields.io/badge/rustc-1.56.0+-yellow.svg)
[![Continuous integration](https://github.com/uuid-rs/uuid/actions/workflows/ci.yml/badge.svg)](https://github.com/uuid-rs/uuid/actions/workflows/ci.yml)

Here's an example of a UUID:
Expand Down

0 comments on commit 619505e

Please sign in to comment.