Skip to content

Commit

Permalink
update MSRV checks to account for features
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades committed Aug 25, 2024
1 parent 8fb5875 commit cfa4d2a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions mavlink-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion mavlink-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion mavlink/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit cfa4d2a

Please sign in to comment.