From e5a07d8e1d62178a7c68ee0cf89836f2e0d45573 Mon Sep 17 00:00:00 2001 From: Tom Kaitchuck Date: Mon, 30 Oct 2023 21:18:14 -0700 Subject: [PATCH 1/4] Add MSRV with github test Signed-off-by: Tom Kaitchuck --- .github/workflows/rust.yml | 2 +- Cargo.toml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f09853c..6396365 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -61,7 +61,7 @@ jobs: - name: check nightly uses: actions-rs/cargo@v1 with: - command: check + command: check -Z msrv-policy - name: test nightly uses: actions-rs/cargo@v1 with: diff --git a/Cargo.toml b/Cargo.toml index aea0d44..e4d53f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,8 @@ edition = "2018" readme = "README.md" build = "./build.rs" exclude = ["/smhasher", "/benchmark_tools"] +rust-version = "1.60.0" + [lib] name = "ahash" @@ -75,12 +77,12 @@ codegen-units = 1 version_check = "0.9.4" [dependencies] -const-random = { version = "0.1.12", optional = true } +const-random = { version = "0.1.17", optional = true } serde = { version = "1.0.117", optional = true } cfg-if = "1.0" atomic-polyfill = { version="1.0.1", optional=true} getrandom = { version = "0.2.7", optional = true } -zerocopy = { version = "0.7.14", default-features = false, features = ["simd"] } +zerocopy = { version = "0.7.20", default-features = false, features = ["simd"] } [target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies] once_cell = { version = "1.13.1", default-features = false, features = ["unstable", "alloc"] } From e139ccfa1712aed0dd88318bddc9b626da608137 Mon Sep 17 00:00:00 2001 From: Tom Kaitchuck Date: Mon, 30 Oct 2023 21:20:31 -0700 Subject: [PATCH 2/4] Pass args separatly Signed-off-by: Tom Kaitchuck --- .github/workflows/rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6396365..7e3ecb4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -61,7 +61,8 @@ jobs: - name: check nightly uses: actions-rs/cargo@v1 with: - command: check -Z msrv-policy + command: check + args: -Z msrv-policy - name: test nightly uses: actions-rs/cargo@v1 with: From 8df1e3e7ac74f070a1f16b074adad76185fe312d Mon Sep 17 00:00:00 2001 From: Tom Kaitchuck Date: Tue, 31 Oct 2023 08:49:58 -0700 Subject: [PATCH 3/4] Update Cargo.toml Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e4d53f7..bce7a20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,6 @@ build = "./build.rs" exclude = ["/smhasher", "/benchmark_tools"] rust-version = "1.60.0" - [lib] name = "ahash" path = "src/lib.rs" From f9dd31a7c2ac4a7d03ce854ab6af5efd3c44cdbb Mon Sep 17 00:00:00 2001 From: Tom Kaitchuck Date: Sun, 12 Nov 2023 14:25:51 -0800 Subject: [PATCH 4/4] Add pre-submit check Signed-off-by: Tom Kaitchuck --- .github/workflows/rust.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e3ecb4..8a59ce0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -168,3 +168,16 @@ jobs: with: command: check args: --target wasm32-unknown-unknown --no-default-features + msrv: + name: MSRV + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install 1.60.0 + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.60.0 + - name: check + uses: actions-rs/cargo@v1 + with: + command: check