diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 577d6bed..56d79bb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 307312df..51cd62a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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", @@ -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"] diff --git a/README.md b/README.md index 2d7746a1..f4b7f54c 100644 --- a/README.md +++ b/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: