diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d26d95059..614e36f51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,18 @@ on: pull_request: jobs: + msrv: + name: Determine MSRV + runs-on: ubuntu-latest + outputs: + msrv: ${{ steps.msrv.outputs.msrv }} + steps: + - uses: actions/checkout@v6 + - id: msrv + run: echo "msrv=$(grep '^rust-version' Cargo.toml | sed 's/.*"\(.*\)"/\1/')" >> "$GITHUB_OUTPUT" + test: + needs: msrv strategy: matrix: os: @@ -15,7 +26,7 @@ jobs: - windows toolchain: - stable - - 1.86 + - ${{ needs.msrv.outputs.msrv }} name: cargo test on ${{ matrix.os }}, rust ${{ matrix.toolchain }} runs-on: ${{ matrix.os }}-latest steps: diff --git a/Cargo.toml b/Cargo.toml index 25dfb3919..f309dd658 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,7 @@ resolver = "2" [workspace.package] edition = "2021" +rust-version = "1.86" [workspace.dependencies] columnar = "0.11" diff --git a/bytes/Cargo.toml b/bytes/Cargo.toml index 2251a64c0..5466ffcfc 100644 --- a/bytes/Cargo.toml +++ b/bytes/Cargo.toml @@ -2,7 +2,8 @@ name = "timely_bytes" version = "0.26.1" authors = ["Frank McSherry "] -edition = "2018" +edition.workspace = true +rust-version.workspace = true description = "Disjoint mutable byte slices from a common allocation" diff --git a/communication/Cargo.toml b/communication/Cargo.toml index a6c967283..cf0451f56 100644 --- a/communication/Cargo.toml +++ b/communication/Cargo.toml @@ -4,6 +4,7 @@ version = "0.26.1" authors = ["Frank McSherry "] description = "Communication layer for timely dataflow" edition.workspace = true +rust-version.workspace = true # These URLs point to more information about the repository diff --git a/container/Cargo.toml b/container/Cargo.toml index 34cbf74e9..2078f0ff8 100644 --- a/container/Cargo.toml +++ b/container/Cargo.toml @@ -4,6 +4,7 @@ version = "0.26.1" description = "Container abstractions for Timely" license = "MIT" edition.workspace = true +rust-version.workspace = true [lints] workspace = true diff --git a/logging/Cargo.toml b/logging/Cargo.toml index acb37a1c6..91bc2337b 100644 --- a/logging/Cargo.toml +++ b/logging/Cargo.toml @@ -4,6 +4,7 @@ version = "0.26.1" authors = ["Frank McSherry "] description = "Common timely logging infrastructure" edition.workspace = true +rust-version.workspace = true documentation = "https://docs.rs/timely/" homepage = "https://github.com/TimelyDataflow/timely-dataflow" diff --git a/mdbook/Cargo.toml b/mdbook/Cargo.toml index ca2e1e6a1..ce2643b4d 100644 --- a/mdbook/Cargo.toml +++ b/mdbook/Cargo.toml @@ -2,6 +2,7 @@ name = "mdbook" version = "0.0.0" edition.workspace = true +rust-version.workspace = true publish = false [lints] diff --git a/timely/Cargo.toml b/timely/Cargo.toml index 8b8e56acd..e7c6d0b13 100644 --- a/timely/Cargo.toml +++ b/timely/Cargo.toml @@ -5,6 +5,7 @@ version = "0.26.1" authors = ["Frank McSherry "] readme = "../README.md" edition.workspace = true +rust-version.workspace = true description = "A low-latency data-parallel dataflow system in Rust" # These URLs point to more information about the repository