From e5d7ce1fcacef633cf711cd1590323727db135c6 Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Tue, 15 Sep 2026 14:59:51 +0200 Subject: [PATCH 1/3] Declare the minimum supported Rust version and check it in CI --- .github/workflows/rust.yml | 12 ++++++++++++ Cargo.toml | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e7da277..964232f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -108,6 +108,18 @@ jobs: - name: Run clippy run: cargo clippy --all-targets --all-features -- -D warnings + msrv: + name: MSRV + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install the declared rust-version + uses: dtolnay/rust-toolchain@1.88.0 + - name: Check both feature sets + run: | + cargo check + cargo check --no-default-features + doc: name: Documentation runs-on: ubuntu-latest diff --git a/Cargo.toml b/Cargo.toml index e2730c4..3f2fdf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "sql_docs" version = "1.3.3" edition = "2024" +rust-version = "1.88" description = "A crate for parsing comments from sql files and using them for documentation generation" documentation = "https://docs.rs/sql_docs" license = "GPL-3.0" From 67187553b185bb1edef9313500eb02e0af6b7e26 Mon Sep 17 00:00:00 2001 From: LucaCappelletti94 Date: Thu, 17 Sep 2026 14:14:02 +0200 Subject: [PATCH 2/3] Pin the MSRV action to a full SHA --- .github/workflows/rust.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 964232f..6f77637 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -113,8 +113,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Read rust-version from Cargo.toml + id: rust-version + run: | + echo "toolchain=$(sed -n 's/^rust-version = "\(.*\)"$/\1/p' Cargo.toml)" >> "$GITHUB_OUTPUT" - name: Install the declared rust-version - uses: dtolnay/rust-toolchain@1.88.0 + uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de + with: + toolchain: ${{ steps.rust-version.outputs.toolchain }} - name: Check both feature sets run: | cargo check From afa454983fbb4f242978390a27dbd675f470b997 Mon Sep 17 00:00:00 2001 From: Luca Cappelletti Date: Thu, 17 Sep 2026 14:41:53 +0200 Subject: [PATCH 3/3] Update .github/workflows/rust.yml Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6f77637..c24650e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -123,8 +123,8 @@ jobs: toolchain: ${{ steps.rust-version.outputs.toolchain }} - name: Check both feature sets run: | - cargo check - cargo check --no-default-features + cargo check --all-targets --all-features + cargo check --all-targets --no-default-features doc: name: Documentation