From 1edbca1fffe8828f7b1ed9735d22f1c50ffc254d Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:26:33 +0100 Subject: [PATCH 1/8] chore(msrv): check msrv pipeline --- .github/workflows/msrv.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/msrv.yml diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml new file mode 100644 index 0000000..66a22d8 --- /dev/null +++ b/.github/workflows/msrv.yml @@ -0,0 +1,29 @@ +name: MSRV + +on: + push: + branches: + - master + tags: + - "*" + pull_request: + +jobs: + msrv: + name: Check MSRV + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust (MSRV) + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.70.0 # ← choose your MSRV + + - name: Cargo check + run: cargo check --all-features + + - name: Cargo test + run: cargo test --all-features From dfa6248b5b386cd805a236d65af47c31f48131a6 Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:28:38 +0100 Subject: [PATCH 2/8] chore(msrv): update rust version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b8d8a0e..fce4476 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/manute/rawsql" documentation = "http://manute.github.io/rawsql/rawsql/index.html" readme = "README.md" keywords = ["database", "sql"] - +rust-version = "1.71" [lib] name = "rawsql" From b212025a796db9c2ed65bd9bd82b7cfd2ff046d3 Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:29:53 +0100 Subject: [PATCH 3/8] fix(version): rust --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fce4476..97dd764 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/manute/rawsql" documentation = "http://manute.github.io/rawsql/rawsql/index.html" readme = "README.md" keywords = ["database", "sql"] -rust-version = "1.71" +rust-version = "1.70" [lib] name = "rawsql" From 45c101a624e5f0e898efcb426e236560663eb7ea Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:32:41 +0100 Subject: [PATCH 4/8] chore(ci): msrv version rust --- .github/workflows/msrv.yml | 4 ++-- Cargo.toml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index 66a22d8..1ab459e 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -19,8 +19,8 @@ jobs: - name: Install Rust (MSRV) uses: dtolnay/rust-toolchain@master - with: - toolchain: 1.70.0 # ← choose your MSRV + # with: + # toolchain: 1.70.0 # ← choose your MSRV - name: Cargo check run: cargo check --all-features diff --git a/Cargo.toml b/Cargo.toml index 97dd764..61256b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,6 @@ repository = "https://github.com/manute/rawsql" documentation = "http://manute.github.io/rawsql/rawsql/index.html" readme = "README.md" keywords = ["database", "sql"] -rust-version = "1.70" [lib] name = "rawsql" From 5d775dce61c104cbb664c3359d415bd9589f2ed6 Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:33:40 +0100 Subject: [PATCH 5/8] chore(msrv): rust version --- .github/workflows/msrv.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index 1ab459e..e25bd6d 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -19,8 +19,8 @@ jobs: - name: Install Rust (MSRV) uses: dtolnay/rust-toolchain@master - # with: - # toolchain: 1.70.0 # ← choose your MSRV + with: + toolchain: 1.80.1 # ← choose your MSRV - name: Cargo check run: cargo check --all-features From 109b86c8ac03f80a1d84f39450af5e8d725c4f59 Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:37:20 +0100 Subject: [PATCH 6/8] chore(deps): bump postgres version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 61256b2..0366d83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,4 @@ path = "src/lib.rs" doctest = false [dev-dependencies] -postgres = "0.19.2" +postgres = "0.19.12" From f4b21f2c9868bcd5954b673074e6a00030b4574b Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:43:09 +0100 Subject: [PATCH 7/8] chore(ci): rust version and improvements --- .github/workflows/ci.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b9ca8c..a240be9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Rust (stable) - uses: dtolnay/rust-toolchain@stable - - - name: Cache Cargo - uses: Swatinem/rust-cache@v2 + - name: Install Rust 1.81 + uses: dtolnay/rust-toolchain@1.81.0 + with: + components: rustfmt, clippy + + - name: Cache Cargo registry & target + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: cargo-cache-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} - name: Format check run: cargo fmt --all -- --check @@ -29,5 +37,5 @@ jobs: - name: Clippy (deny warnings) run: cargo clippy --all-targets --all-features -- -D warnings - - name: Unit tests + - name: Run tests run: cargo test --all --all-features --verbose From 9b67f34e2da0a38737d6ebbe8eb4c88d528da01a Mon Sep 17 00:00:00 2001 From: Manuel Alonso <434575+manute@users.noreply.github.com> Date: Sat, 22 Nov 2025 07:47:08 +0100 Subject: [PATCH 8/8] chore(tools): toolchain --- .github/workflows/ci.yml | 12 ++++++++++-- rust-toolchain.toml | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a240be9..1c13cbe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install Rust 1.81 - uses: dtolnay/rust-toolchain@1.81.0 + # Force correct Rust version + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 with: + profile: minimal + toolchain: 1.81.0 components: rustfmt, clippy + override: true + + # Verify rustc version + - name: Check rustc version + run: rustc --version - name: Cache Cargo registry & target uses: actions/cache@v4 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..f19c7df --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.81.0" +components = ["rustfmt", "clippy"]