diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e7da277..c24650e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -108,6 +108,24 @@ 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: 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@02cb101ec7c40f2c49e1d9714d64511d8e1b74de + with: + toolchain: ${{ steps.rust-version.outputs.toolchain }} + - name: Check both feature sets + run: | + cargo check --all-targets --all-features + cargo check --all-targets --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"