From 0d0cdbd7c7a364b442b8a81ba0bd835d5d0c2da2 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 14 Jun 2025 02:45:26 +0000 Subject: [PATCH] Set a MSRV to 1.82 and test it 1.82 seems to be the lowest version supported by dependencies; in particular, the latest version of `writeable` requires 1.81, and `icu_properties_data` requires 1.82. --- .github/workflows/ci.yaml | 13 +++++++++++++ Cargo.toml | 1 + 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2bf70f8d..27fe7386 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,3 +62,16 @@ jobs: with: command: test args: --features ${{ matrix.features }} + + msrv: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@master + - name: Install Rust + run: | + msrv="$(cargo metadata --format-version=1 | + jq -r '.packages[] | select(.name == "rouille").rust_version' + )" + rustup update "$msrv" && rustup default "$msrv" + - uses: Swatinem/rust-cache@v2 + - run: cargo check diff --git a/Cargo.toml b/Cargo.toml index 13050dac..221828eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ description = "High-level idiomatic web framework." readme = "README.md" keywords = ["web", "framework", "http", "rest"] categories = ["web-programming::http-server", "web-programming::websocket"] +rust-version = "1.82" [features] default = ["gzip", "brotli"]