Skip to content

chore(deps): cargo update + drop unmaintained rustls-pemfile#8

Merged
lfrancke merged 2 commits into
mainfrom
chore/update-dependencies
Jun 16, 2026
Merged

chore(deps): cargo update + drop unmaintained rustls-pemfile#8
lfrancke merged 2 commits into
mainfrom
chore/update-dependencies

Conversation

@lfrancke

@lfrancke lfrancke commented Jun 16, 2026

Copy link
Copy Markdown
Member

What

Bring the dependency tree back to a green cargo-deny against the current advisory DB. (main is currently red against today's DB — these advisories post-date the last run.)

Two commits:

  1. cargo update — refresh Cargo.lock to latest semver-compatible versions. Resolves two advisories: postgres-protocol → 0.6.12, and tokio-postgres → 0.7.18 (RUSTSEC-2026-0178, a DoS panic on a short DataRow). No Cargo.toml constraint changes here.
  2. Drop unmaintained rustls-pemfile (RUSTSEC-2025-0134, no safe upgrade) — it is now a thin wrapper around rustls-pki-types, which we already depend on. src/tls.rs migrates to the rustls-pki-types PemObject API (CertificateDer::pem_file_iter / PrivateKeyDer::from_pem_file, behind the std feature). Also allow Apache-2.0 WITH LLVM-exception in deny.toml (pulled in via psm/stacker under sqlparser; Apache-2.0-compatible).

Testing

cargo deny check → advisories/bans/licenses/sources all ok. cargo build, cargo clippy --all-targets -- -D warnings, cargo fmt --check, and the full test suite (incl. the TLS keypair tests, against Trino 479 on SDP) all pass.

Note

#7 (binary result-format fix) is stacked on this branch — it needs these same advisory fixes to pass CI. Merge this first; #7 will retarget to main automatically.

🤖 Generated with Claude Code

lfrancke and others added 2 commits June 17, 2026 00:04
Refresh Cargo.lock to the latest semver-compatible versions of all
dependencies (no Cargo.toml constraint changes). Notable bumps include
tokio 1.52.1 -> 1.52.3, postgres-types 0.2.13 -> 0.2.14, rust_decimal
1.41.0 -> 1.42.1, reqwest 0.13.3 -> 0.13.4, and tower-http 0.6.8 -> 0.6.11.

cargo build, clippy --all-targets -D warnings, fmt --check, and the full
test suite (against Trino 479) all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cargo-deny flagged three issues against the current advisory DB. The
cargo update commit already resolves the postgres-protocol (>=0.6.12) and
tokio-postgres (RUSTSEC-2026-0178, >=0.7.18) advisories. This commit
handles the remaining two:

- rustls-pemfile is unmaintained (RUSTSEC-2025-0134) with no safe upgrade.
  It is now a thin wrapper around rustls-pki-types, which we already depend
  on. Migrate src/tls.rs to the rustls-pki-types PemObject API
  (CertificateDer::pem_file_iter / PrivateKeyDer::from_pem_file, behind the
  `std` feature) and drop the rustls-pemfile dependency.
- Allow "Apache-2.0 WITH LLVM-exception" in deny.toml. It is pulled in via
  psm/stacker (sqlparser's recursion guard) and is Apache-2.0-compatible.

cargo deny check now reports advisories/bans/licenses/sources all ok;
build, clippy -D warnings, fmt, and the full test suite (incl. the TLS
keypair tests, against Trino 479) pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lfrancke lfrancke changed the title chore(deps): cargo update chore(deps): cargo update + drop unmaintained rustls-pemfile Jun 16, 2026
@lfrancke lfrancke merged commit 667f369 into main Jun 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant