diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09576e6..25042bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,20 @@ jobs: with: extra_args: --all-files + msrv-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: moonrepo/setup-rust@v1 + with: + bins: cargo-msrv + - name: Check cospeed MSRV + run: cargo msrv --path crates/codspeed verify -- cargo check --all-features --config codspeed=true + - name: Check bencher_compat MSRV + run: cargo msrv --path crates/bencher_compat verify -- cargo check --all-features --config codspeed=true + - name: Check criterion_compat MSRV + run: cargo msrv --path crates/criterion_compat verify -- cargo check --all-features --config codspeed=true + tests: runs-on: ubuntu-latest steps: diff --git a/Cargo.lock b/Cargo.lock index 2f8497a..b4f9597 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -612,9 +612,9 @@ dependencies = [ [[package]] name = "cargo-credential-libsecret" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7133c8156697989e0d3547f886083bdcb4d7463be67699c37c206152e46925b0" +checksum = "508a82e6202bdb857bed8fabd67a29cdb2e5c3dd3eeb283da3e225da5a5c700d" dependencies = [ "anyhow", "cargo-credential", @@ -623,9 +623,9 @@ dependencies = [ [[package]] name = "cargo-credential-macos-keychain" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e238786dd6bc99a94a99a108a0fedcc7e786a86c81b8e9857da88ca3caac3d0" +checksum = "4635f2c8a02d08a16f8649672df1999f796c68bcd75784213a6495d8c190cddd" dependencies = [ "cargo-credential", "security-framework", @@ -633,9 +633,9 @@ dependencies = [ [[package]] name = "cargo-credential-wincred" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc0e24a553bb387e22fd5a18f49b72f15db22426b5a0cd37c5fc804978f5ce13" +checksum = "a86ccaf9c6f49354e832c0eeb44b310ab953871fa2417d2e01ee3d153b310051" dependencies = [ "cargo-credential", "windows-sys 0.52.0", @@ -652,9 +652,9 @@ dependencies = [ [[package]] name = "cargo-util" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14104698cb1694d43c2ff73492468ccf2bb0b047071a9838d999eeba9e984ffa" +checksum = "cc680c90073156fb5280c0c0127b779eef1f6292e41f7d6621acba3041e81c7d" dependencies = [ "anyhow", "core-foundation", @@ -895,9 +895,9 @@ dependencies = [ [[package]] name = "crates-io" -version = "0.40.3" +version = "0.40.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b7837d3d2ea5d21a399489029609840d95608bfdf1dc5fd8604392df4b219b3" +checksum = "f0f4884a8a380811c8ef088e7caeb68caeb665ffdb91f7276069e3c7828f168a" dependencies = [ "curl", "percent-encoding", diff --git a/crates/bencher_compat/Cargo.toml b/crates/bencher_compat/Cargo.toml index 3ab723d..5718858 100644 --- a/crates/bencher_compat/Cargo.toml +++ b/crates/bencher_compat/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "codspeed-bencher-compat" version = "2.7.0" +rust-version = "1.74" # MSRV edition = "2021" description = "Bencher compatibility layer for CodSpeed" authors = ["Arthur Pastel "] diff --git a/crates/bencher_compat/build.rs b/crates/bencher_compat/build.rs index 1e38455..688a004 100644 --- a/crates/bencher_compat/build.rs +++ b/crates/bencher_compat/build.rs @@ -1,3 +1,3 @@ fn main() { - println!("cargo::rustc-check-cfg=cfg(codspeed)"); + println!("cargo:rustc-check-cfg=cfg(codspeed)"); } diff --git a/crates/codspeed/Cargo.toml b/crates/codspeed/Cargo.toml index ef07af0..e0b80e9 100644 --- a/crates/codspeed/Cargo.toml +++ b/crates/codspeed/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "codspeed" version = "2.7.0" +rust-version = "1.74" # MSRV edition = "2021" description = "Core instrumentation library for CodSpeed" authors = ["Arthur Pastel "] diff --git a/crates/criterion_compat/Cargo.toml b/crates/criterion_compat/Cargo.toml index 7e60dd7..1ef4044 100644 --- a/crates/criterion_compat/Cargo.toml +++ b/crates/criterion_compat/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "codspeed-criterion-compat" version = "2.7.0" +rust-version = "1.74" # MSRV edition = "2021" description = "Criterion.rs compatibility layer for CodSpeed" authors = ["Arthur Pastel "] @@ -20,7 +21,7 @@ criterion = { version = "0.5.1", default-features = false } codspeed = { path = "../codspeed", version = "=2.7.0" } colored = "2.1.0" -futures = { version = "0.3", default_features = false, optional = true } +futures = { version = "0.3", default-features = false, optional = true } smol = { version = "2.0", default-features = false, optional = true } tokio = { version = "1.39", default-features = false, features = [ "rt", diff --git a/crates/criterion_compat/build.rs b/crates/criterion_compat/build.rs index 1e38455..688a004 100644 --- a/crates/criterion_compat/build.rs +++ b/crates/criterion_compat/build.rs @@ -1,3 +1,3 @@ fn main() { - println!("cargo::rustc-check-cfg=cfg(codspeed)"); + println!("cargo:rustc-check-cfg=cfg(codspeed)"); }