Skip to content

fix: minimum syn version - #550

Merged
djkoloski merged 1 commit into
rkyv:mainfrom
xJonathanLEI:fix/syn_version
Sep 14, 2024
Merged

djkoloski merged 1 commit into
rkyv:mainfrom
xJonathanLEI:fix/syn_version

Conversation

@xJonathanLEI

Copy link
Copy Markdown
Contributor

rkyv uses Fields::members() which was added in syn v2.0.73 (not a very correct use of SemVer on syn's part). Downstream projects that have locked syn to an older version would fail to compile upon adding rkyv as a dependency.

This can be reproduced by just trying to compile:

[package]
name = "rkyv-test"
version = "0.1.0"
edition = "2021"

[dependencies]
rkyv = "0.8.2"
syn = "=2.0.72"

`rkyv` uses `Fields::members()` which was added in `syn` v2.0.73.
Downstream projects that have locked `syn` to an older version would
fail to compile upon adding `rkyv` as a dependency.
@djkoloski
djkoloski merged commit 52c484d into rkyv:main Sep 14, 2024
@djkoloski

Copy link
Copy Markdown
Collaborator

Thanks for the PR, sorry about that!

@xJonathanLEI
xJonathanLEI deleted the fix/syn_version branch September 14, 2024 04:05
@renovate renovate Bot mentioned this pull request Oct 1, 2024
1 task
s3bk pushed a commit to s3bk/rkyv that referenced this pull request Aug 24, 2026
`rkyv` uses `Fields::members()` which was added in `syn` v2.0.73.
Downstream projects that have locked `syn` to an older version would
fail to compile upon adding `rkyv` as a dependency.
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.

2 participants