Skip to content

Commit 4597d3b

Browse files
authored
Merge pull request #4823 from weiznich/prepare/2.3.3
Prepare/2.3.3
2 parents ace8952 + 921212b commit 4597d3b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+348
-143
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "github-actions"
4+
reviewers:
5+
- "diesel/reviewers"
6+
schedule:
7+
interval: "weekly"
8+
- package-ecosystem: "rust-toolchain"
9+
reviewers:
10+
- "diesel/reviewers"
11+
schedule:
12+
interval: "weekly"
13+
day: "friday" # rust releases are on thursdays
314
- package-ecosystem: "cargo"
415
directory: "/"
516
allow:

.github/workflows/audit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
security_audit:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions-rust-lang/audit@v1
19-
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
17+
- uses: actions/checkout@v5
18+
- run: |
19+
cargo install cargo-deny --locked
20+
cargo deny check

.github/workflows/ci.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [opened, synchronize, reopened]
66
push:
77
branches:
8-
- master
8+
- main
99
- "0.[0-9]+.x"
1010
- "1.[0-9]+.x"
1111
- "2.[0-9]+.x"
@@ -30,7 +30,14 @@ jobs:
3030
matrix:
3131
rust: ["stable"]
3232
backend: ["postgres", "sqlite", "mysql"]
33-
os: [ubuntu-latest, macos-13, macos-15, windows-2025, ubuntu-22.04-arm]
33+
os:
34+
[
35+
ubuntu-latest,
36+
macos-15-intel,
37+
macos-15,
38+
windows-2025,
39+
ubuntu-24.04-arm,
40+
]
3441
include:
3542
- rust: "beta"
3643
backend: "postgres"
@@ -53,7 +60,7 @@ jobs:
5360
runs-on: ${{ matrix.os }}
5461
steps:
5562
- name: Checkout sources
56-
uses: actions/checkout@v4
63+
uses: actions/checkout@v5
5764

5865
- name: Cache cargo registry
5966
uses: Swatinem/rust-cache@v2
@@ -64,7 +71,6 @@ jobs:
6471
shell: bash
6572
if: matrix.rust == 'nightly'
6673
run: |
67-
echo "RUSTFLAGS=--cfg doc_cfg" >> $GITHUB_ENV
6874
echo "RUSTDOCFLAGS=--cfg doc_cfg" >> $GITHUB_ENV
6975
7076
- name: Set environment variables
@@ -104,7 +110,7 @@ jobs:
104110
echo "MYSQL_UNIT_TEST_DATABASE_URL=mysql://root:[email protected]/diesel_unit_test" >> $GITHUB_ENV
105111
106112
- name: Install postgres (MacOS)
107-
if: (matrix.os == 'macos-13' || matrix.os == 'macos-15') && matrix.backend == 'postgres'
113+
if: runner.os == 'macOS' && matrix.backend == 'postgres'
108114
run: |
109115
brew update
110116
brew install postgresql@14
@@ -120,8 +126,8 @@ jobs:
120126
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install sqlite
121127
echo "SQLITE_DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
122128
123-
- name: Install mysql (MacOS)
124-
if: matrix.os == 'macos-13' && matrix.backend == 'mysql'
129+
- name: Install mysql (MacOS Intel)
130+
if: matrix.os == 'macos-15-intel' && matrix.backend == 'mysql'
125131
run: |
126132
brew install [email protected]
127133
/usr/local/opt/[email protected]/bin/mysql.server start
@@ -265,7 +271,7 @@ jobs:
265271
runs-on: ubuntu-latest
266272
needs: [rustfmt_and_clippy]
267273
steps:
268-
- uses: actions/checkout@v4
274+
- uses: actions/checkout@v5
269275
- uses: dtolnay/rust-toolchain@master
270276
with:
271277
toolchain: stable
@@ -287,7 +293,7 @@ jobs:
287293
name: Check rustfmt style && run clippy
288294
runs-on: ubuntu-latest
289295
steps:
290-
- uses: actions/checkout@v4
296+
- uses: actions/checkout@v5
291297
- uses: dtolnay/rust-toolchain@stable
292298
with:
293299
components: clippy, rustfmt
@@ -326,7 +332,7 @@ jobs:
326332
runs-on: ubuntu-latest
327333
needs: [rustfmt_and_clippy]
328334
steps:
329-
- uses: actions/checkout@v4
335+
- uses: actions/checkout@v5
330336
- uses: dtolnay/rust-toolchain@stable
331337
with:
332338
components: "rust-src"
@@ -360,10 +366,10 @@ jobs:
360366
runs-on: ubuntu-latest
361367
needs: [rustfmt_and_clippy]
362368
steps:
363-
- uses: actions/checkout@v4
369+
- uses: actions/checkout@v5
364370
- uses: dtolnay/rust-toolchain@stable
365371
with:
366-
components: "rust-src"
372+
components: "rust-src, rustfmt"
367373
- name: Cache cargo registry
368374
uses: Swatinem/rust-cache@v2
369375
with:
@@ -392,10 +398,10 @@ jobs:
392398
runs-on: ubuntu-latest
393399
needs: [rustfmt_and_clippy]
394400
steps:
395-
- uses: actions/checkout@v4
401+
- uses: actions/checkout@v5
396402
- uses: dtolnay/rust-toolchain@stable
397403
with:
398-
components: "rust-src"
404+
components: "rust-src, rustfmt"
399405
- name: Cache cargo registry
400406
uses: Swatinem/rust-cache@v2
401407
with:
@@ -435,10 +441,10 @@ jobs:
435441
runs-on: ubuntu-latest
436442
needs: [rustfmt_and_clippy]
437443
steps:
438-
- uses: actions/checkout@v4
444+
- uses: actions/checkout@v5
439445
- uses: dtolnay/rust-toolchain@stable
440446
with:
441-
components: "rust-src"
447+
components: "rust-src, rustfmt"
442448
- name: Cache cargo registry
443449
uses: Swatinem/rust-cache@v2
444450
with:
@@ -489,7 +495,7 @@ jobs:
489495
runs-on: ubuntu-latest
490496
needs: [rustfmt_and_clippy]
491497
steps:
492-
- uses: actions/checkout@v4
498+
- uses: actions/checkout@v5
493499
- uses: dtolnay/[email protected]
494500
- uses: dtolnay/rust-toolchain@nightly
495501
- uses: taiki-e/install-action@cargo-hack
@@ -518,7 +524,7 @@ jobs:
518524
runs-on: ubuntu-latest
519525
needs: [rustfmt_and_clippy]
520526
steps:
521-
- uses: actions/checkout@v4
527+
- uses: actions/checkout@v5
522528
- uses: dtolnay/rust-toolchain@stable
523529
- uses: taiki-e/install-action@v2
524530
with:

.github/workflows/doc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- master
4+
- main
55
- "0.[0-9]+.x"
66
- "1.[0-9]+.x"
77
- "2.[0-9]+.x"
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout sources
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
- name: Cache cargo registry
2323
uses: Swatinem/rust-cache@v2
2424
with:
@@ -35,8 +35,8 @@ jobs:
3535
sudo apt-get -y install libmysqlclient-dev libsqlite3-dev libpq-dev libtirpc-dev
3636
- name: Build documentation
3737
env:
38-
RUSTFLAGS: "--cfg docsrs"
39-
RUSTDOCFLAGS: "--cfg docsrs -Z unstable-options --generate-link-to-definition"
38+
RUSTFLAGS: "--cfg diesel_docsrs"
39+
RUSTDOCFLAGS: "--cfg diesel_docsrs -Z unstable-options --generate-link-to-definition --generate-macro-expansion"
4040
run: cargo +nightly doc --manifest-path diesel/Cargo.toml --features "postgres sqlite mysql extras i-implement-a-third-party-backend-and-opt-into-breaking-changes" --workspace
4141

4242
- name: Publish documentation

.github/workflows/metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
backend: ["postgres", "sqlite", "mysql"]
2222
steps:
2323
- name: Checkout sources
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525
- name: cache
2626
uses: Swatinem/rust-cache@v2
2727
with:

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
name: Release
1717
permissions:
18+
"attestations": "write"
1819
"contents": "write"
20+
"id-token": "write"
1921

2022
# This task will run whenever you push a git tag that looks like a version
2123
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
@@ -64,7 +66,7 @@ jobs:
6466
# we specify bash to get pipefail; it guards against the `curl` command
6567
# failing. otherwise `sh` won't catch that `curl` returned non-0
6668
shell: bash
67-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.29.0/cargo-dist-installer.sh | sh"
69+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.0/cargo-dist-installer.sh | sh"
6870
- name: Cache dist
6971
uses: actions/upload-artifact@v4
7072
with:
@@ -144,6 +146,10 @@ jobs:
144146
# Actually do builds and make zips and whatnot
145147
dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
146148
echo "dist ran successfully"
149+
- name: Attest
150+
uses: actions/attest-build-provenance@v2
151+
with:
152+
subject-path: "target/distrib/*${{ join(matrix.targets, ', ') }}*"
147153
- id: cargo-dist
148154
name: Post-build
149155
# We force bash here just because github makes it really hard to get values up

.github/workflows/run_benches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
backend: ["postgres", "sqlite", "mysql"]
1717
steps:
1818
- name: Checkout sources
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
- name: Install postgres (Linux)
2222
if: matrix.backend == 'postgres'
@@ -73,7 +73,7 @@ jobs:
7373
path: ./pr_${{ matrix.backend }}.txt
7474

7575
- name: Checkout base branch
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@v5
7777
with:
7878
ref: ${{ github.event.pull_request.base.sha }}
7979
repository: ${{ github.event.pull_request.base.repo.full_name }}

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Increasing the minimal supported Rust version will always be coupled at least wi
1212

1313
## Unreleased
1414

15+
## [2.3.3] 2025-10-24
16+
17+
### Fixed
18+
19+
* Fix displaying binds in instrumentations for `#[derive(MultiConnection)]`
20+
* Support artifact attestation for binaries build for releases
21+
* Stop using absolute paths in generated diesel.toml
22+
* Explicitly qualify `Ok` in code generated by derives to avoid naming conflicts
23+
1524
## [2.3.2] 2025-09-19
1625

1726
### Fixed
@@ -225,7 +234,7 @@ in a way that makes the pools suitable for use in parallel tests.
225234

226235
## Fixed
227236

228-
* Fixed another potential breaking chaneg around queries containing `DISTINCT ON` and `ORDER BY` clauses consisting of custom sql expressions (e.g. `.nullable()`)
237+
* Fixed another potential breaking change around queries containing `DISTINCT ON` and `ORDER BY` clauses consisting of custom sql expressions (e.g. `.nullable()`)
229238
* Fixed an issue where `#[derive(Selectable)]` and `#[diesel(check_for_backend)]` generates invalid rust code if the struct contains lifetimes/generic types
230239

231240
## [2.1.1] 2023-08-25
@@ -2282,3 +2291,4 @@ queries or set `PIPES_AS_CONCAT` manually.
22822291
[2.2.12]: https://github.com/diesel-rs/diesel/compare/v2.2.11...v2.2.12
22832292
[2.3.0]: https://github.com/diesel-rs/diesel/compare/v2.2.0...v2.3.0
22842293
[2.3.2]: https://github.com/diesel-rs/diesel/compare/v2.3.0...v2.3.2
2294+
[2.3.3]: https://github.com/diesel-rs/diesel/compare/v2.3.3...v2.3.3

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ opt-level = 3
5252
[profile.dev.package.similar]
5353
opt-level = 3
5454

55+
[workspace.lints.rust]
56+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(diesel_docsrs)'] }
57+
5558
# The profile that 'cargo dist' will build with
5659
[profile.dist]
5760
inherits = "release"

diesel/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "diesel"
3-
version = "2.3.2"
3+
version = "2.3.3"
44
license = "MIT OR Apache-2.0"
55
description = "A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL"
66
readme = "README.md"
@@ -107,5 +107,8 @@ __with_asan_tests = [
107107
[package.metadata.docs.rs]
108108
features = ["postgres", "mysql", "sqlite", "extras"]
109109
no-default-features = true
110-
rustc-args = ["--cfg", "docsrs"]
111-
rustdoc-args = ["--cfg", "docsrs", "-Z", "unstable-options", "--generate-link-to-definition"]
110+
rustc-args = ["--cfg", "diesel_docs"]
111+
rustdoc-args = ["--cfg", "diesel_docsrs", "-Z", "unstable-options", "--generate-link-to-definition", "--generate-macro-expansion"]
112+
113+
[lints]
114+
workspace = true

0 commit comments

Comments
 (0)