From cfa4d2a0c41fdfca00f33d028d31ff2c93db01f4 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 25 Aug 2024 06:58:41 +0100 Subject: [PATCH] update MSRV checks to account for features --- .github/workflows/test.yml | 16 ++++++---------- Cargo.toml | 3 +++ mavlink-bindgen/Cargo.toml | 1 + mavlink-core/Cargo.toml | 2 +- mavlink/Cargo.toml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 313eb75862..914ccb584e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,20 +46,16 @@ jobs: msrv: runs-on: ubuntu-latest + strategy: + matrix: + features: ["", --features serde, --features tokio-1] steps: - uses: actions/checkout@master - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.65.0 - - uses: actions-rs/cargo@v1 - with: - command: install - args: cross --locked - - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: check - args: --all --all-targets + toolchain: 1.70.0 + - uses: taiki-e/install-action@cargo-no-dev-deps + - run: cargo no-dev-deps check --all --all-targets ${{ matrix.features }} build: needs: [formatting, linting, internal-tests, mavlink-dump, msrv] diff --git a/Cargo.toml b/Cargo.toml index 65e9ef8b1d..709e1690f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,6 @@ num-traits = { version = "0.2", default-features = false } num-derive = "0.3.2" bitflags = "1.2.1" byteorder = { version = "1.3.4", default-features = false } + +[workspace.package] +rust-version = "1.70.0" diff --git a/mavlink-bindgen/Cargo.toml b/mavlink-bindgen/Cargo.toml index 4a6e365f7d..72eb91068f 100644 --- a/mavlink-bindgen/Cargo.toml +++ b/mavlink-bindgen/Cargo.toml @@ -6,6 +6,7 @@ license = "MIT/Apache-2.0" description = "Library used by rust-mavlink." readme = "README.md" repository = "https://github.com/mavlink/rust-mavlink" +rust-version.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/mavlink-core/Cargo.toml b/mavlink-core/Cargo.toml index 8883a15ded..6b1ced4c35 100644 --- a/mavlink-core/Cargo.toml +++ b/mavlink-core/Cargo.toml @@ -14,7 +14,7 @@ readme = "../README.md" license = "MIT/Apache-2.0" repository = "https://github.com/mavlink/rust-mavlink" edition = "2018" -rust-version = "1.65.0" +rust-version.workspace = true [dependencies] crc-any = { workspace = true, default-features = false } diff --git a/mavlink/Cargo.toml b/mavlink/Cargo.toml index 597a6c756b..f8190b7538 100644 --- a/mavlink/Cargo.toml +++ b/mavlink/Cargo.toml @@ -16,7 +16,7 @@ readme = "../README.md" license = "MIT/Apache-2.0" repository = "https://github.com/mavlink/rust-mavlink" edition = "2018" -rust-version = "1.65.0" +rust-version.workspace = true [build-dependencies] mavlink-bindgen = { path = "../mavlink-bindgen", default-features = false }