Skip to content

Commit bda43b2

Browse files
committed
Fix MSRV
1 parent e309bd5 commit bda43b2

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

.github/workflows/openblas-src.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,16 @@ jobs:
132132
tool: cross
133133
- name: Test features=${{ matrix.feature }}
134134
run: cross test --target ${{matrix.target}} --features=${{ matrix.feature }} --manifest-path=openblas-src/Cargo.toml
135+
msrv-test:
136+
name: MSRV test
137+
runs-on: ubuntu-latest
138+
steps:
139+
- uses: actions/checkout@v4
140+
- name: Install OpenBLAS by apt
141+
run: |
142+
apt update
143+
apt install -y libopenblas-dev
144+
- name: Install toolchain
145+
uses: dtolnay/rust-toolchain@1.71
146+
- name: cargo test
147+
run: cargo check --manifest-path=openblas-src/Cargo.toml --features=system

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ members = [
33
"openblas-src",
44
"openblas-build",
55
]
6+
7+
[workspace.package]
8+
rust-version = "1.71.1"

openblas-build/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ homepage = "https://github.com/blas-lapack-rs/openblas-src"
1010
repository = "https://github.com/blas-lapack-rs/openblas-src"
1111
readme = "../README.md"
1212
exclude = ["test_build/"]
13+
rust-version = "1.71.1"
1314

1415
[dependencies]
1516
anyhow = "1.0.68"
1617
cc = "1.0"
1718
flate2 = "1.0.25"
1819
tar = "0.4.38"
1920
thiserror = "2.0"
20-
ureq = { version = "2.5.0", default-features = false, features = [
21+
ureq = { version = "2.8", default-features = false, features = [
2122
"native-certs",
2223
"native-tls",
2324
"gzip",

openblas-src/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ categories = ["science"]
2222
keywords = ["linear-algebra"]
2323
build = "build.rs"
2424
links = "openblas"
25+
rust-version = "1.71.1"
2526

2627
[features]
2728
default = ["cblas", "lapacke"]

openblas-src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn build() {
157157
cfg.compilers.ranlib = env::var("OPENBLAS_RANLIB").ok();
158158

159159
let output = if feature_enabled("cache") {
160-
use std::hash::*;
160+
use std::{collections::hash_map::DefaultHasher, hash::{Hash, Hasher}};
161161
// Build OpenBLAS on user's data directory.
162162
// See https://docs.rs/dirs/5.0.1/dirs/fn.data_dir.html
163163
//

0 commit comments

Comments
 (0)