Skip to content

Commit 0cbca01

Browse files
committed
chore: set MSRV to 1.74 and enforce it in CI
1 parent 6903770 commit 0cbca01

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
with:
1919
extra_args: --all-files
2020

21+
msrv-check:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: moonrepo/setup-rust@v1
26+
with:
27+
bins: cargo-msrv
28+
- name: Check cospeed MSRV
29+
run: cargo msrv --path crates/codspeed verify -- cargo check --all-features --config codspeed=true
30+
- name: Check bencher_compat MSRV
31+
run: cargo msrv --path crates/bencher_compat verify -- cargo check --all-features --config codspeed=true
32+
- name: Check criterion_compat MSRV
33+
run: cargo msrv --path crates/criterion_compat verify -- cargo check --all-features --config codspeed=true
34+
2135
tests:
2236
runs-on: ubuntu-latest
2337
steps:

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bencher_compat/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "codspeed-bencher-compat"
33
version = "2.7.0"
4+
rust-version = "1.74" # MSRV
45
edition = "2021"
56
description = "Bencher compatibility layer for CodSpeed"
67
authors = ["Arthur Pastel <[email protected]>"]

crates/bencher_compat/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() {
2-
println!("cargo::rustc-check-cfg=cfg(codspeed)");
2+
println!("cargo:rustc-check-cfg=cfg(codspeed)");
33
}

crates/codspeed/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "codspeed"
33
version = "2.7.0"
4+
rust-version = "1.74" # MSRV
45
edition = "2021"
56
description = "Core instrumentation library for CodSpeed"
67
authors = ["Arthur Pastel <[email protected]>"]

crates/criterion_compat/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "codspeed-criterion-compat"
33
version = "2.7.0"
4+
rust-version = "1.74" # MSRV
45
edition = "2021"
56
description = "Criterion.rs compatibility layer for CodSpeed"
67
authors = ["Arthur Pastel <[email protected]>"]
@@ -20,7 +21,7 @@ criterion = { version = "0.5.1", default-features = false }
2021
codspeed = { path = "../codspeed", version = "=2.7.0" }
2122
colored = "2.1.0"
2223

23-
futures = { version = "0.3", default_features = false, optional = true }
24+
futures = { version = "0.3", default-features = false, optional = true }
2425
smol = { version = "2.0", default-features = false, optional = true }
2526
tokio = { version = "1.39", default-features = false, features = [
2627
"rt",

crates/criterion_compat/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() {
2-
println!("cargo::rustc-check-cfg=cfg(codspeed)");
2+
println!("cargo:rustc-check-cfg=cfg(codspeed)");
33
}

0 commit comments

Comments
 (0)