From 8e59aa850d5b1d275f65d82da499f4aeb9d5ae2c Mon Sep 17 00:00:00 2001 From: Randolf Jung Date: Wed, 26 Aug 2026 22:29:30 -0700 Subject: [PATCH] fix: declare Rust 1.94 MSRV --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 994c4b4..a36fbcb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,28 @@ permissions: contents: read jobs: + msrv: + name: Rust 1.94.0 + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Install Rust 1.94.0 + uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable + with: + toolchain: "1.94.0" + + - name: Check MSRV + run: rustup run 1.94.0 cargo check --locked --workspace --all-features --all-targets + + - name: Test MSRV + run: rustup run 1.94.0 cargo test --locked -p sqlc-gen-sqlx --all-features --lib --test codegen + test: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/Cargo.toml b/Cargo.toml index 17014c6..b62b5d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,7 @@ name = "sqlc-gen-sqlx" # - Create a v0.2.x tag version = "0.2.3" edition = "2024" +rust-version = "1.94" description = "A sqlc plugin that generates type-safe sqlx Rust code from SQL queries." repository = "https://github.com/mathematic-inc/sqlc-gen-sqlx" license = "MIT OR Apache-2.0"