chore(deps): upgrade syn 2 → 3 in hyperdb-api-derive - #319
Merged
Conversation
syn 3.0 adds an `attrs` field to type-syntax nodes (`TypePath`, etc.),
so the exhaustive `TypePath { path, qself: None }` struct patterns no
longer compile (E0027). Match `..` to ignore it — we never inspect
attributes on a type node.
Supersedes Dependabot tableau#314, which bumped the pin but left the source on
syn 2's API, failing the clippy and msrv (1.88) gates. syn 3.0.5's own
MSRV is 1.71, well under the 1.88 floor.
Verified: clippy --workspace --all-targets --all-features -D warnings,
msrv 1.88 workspace + standalone compile-check checks, fmt, the derive
crate's trybuild UI suite (compile-fail stderr snapshots unchanged under
syn 3), the compile-check validator tests, the doc gate, and the
compile_time_validation example end-to-end — all green.
StefanSteiner
enabled auto-merge (squash)
September 8, 2026 06:50
StefanSteiner
disabled auto-merge
September 8, 2026 06:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Upgrades
hyperdb-api-derive's directsynpin from2to3(resolves to 3.0.5) and adapts the source to syn 3.0's API.Why
Supersedes Dependabot #314, which bumped the pin but left the code on syn 2's API — failing the
clippy (ubuntu-latest)andmsrv (1.88)gates. This PR does the actual port.The breaking change
syn 3.0 adds an
attrsfield to type-syntax nodes (TypePath, and siblings). The crate's exhaustiveTypePath { path, qself: None }struct patterns therefore no longer compile:Fix: match
..in those patterns to ignore the new field — we never inspect attributes on a type node. Five patterns acrosssrc/lib.rsandsrc/table_derive.rs.No public API change; the generated macro output is identical. syn is a build-time-only dependency of this proc-macro crate, so nothing changes for downstream runtime dependency trees. syn 3.0.5's own MSRV is 1.71, well under this workspace's 1.88 floor.
Verification (local, pinned hyperd 0.0.26479)
All green:
cargo clippy --workspace --all-targets --all-features -- -D warningscargo +1.88 check --workspace --locked --all-targets --all-features(msrv gate 1)cargo +1.88 check --locked --all-targets --manifest-path hyperdb-compile-check/Cargo.toml(msrv gate 2)cargo fmt --all -- --checkcargo test -p hyperdb-api-derive— the trybuild UI suite, including compile-fail.stderrsnapshots, which are unchanged under syn 3cargo test --manifest-path hyperdb-compile-check/Cargo.toml(the validator)RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features)cargo run -p hyperdb-api --example compile_time_validation --features hyperdb-api-derive/compile-time— full derive → register →query_as!validate → runtime path