Skip to content

chore(macro): bump syn to v3 - #3028

Open
AudaciousAxiom wants to merge 1 commit into
rust-lang:mainfrom
AudaciousAxiom:chore/syn-v3
Open

chore(macro): bump syn to v3#3028
AudaciousAxiom wants to merge 1 commit into
rust-lang:mainfrom
AudaciousAxiom:chore/syn-v3

Conversation

@AudaciousAxiom

@AudaciousAxiom AudaciousAxiom commented Jul 26, 2026

Copy link
Copy Markdown

Following the release of a new major version of syn, this bumps the version used by futures-macro, with the goal of eventually removing the duplicated dependency in binaries (and therefore reducing compile times).

syn v3 advertises an MSRV of 1.71, so this shouldn't affect the MSRV of this crate.

syn v3 of course contains breaking changes: I've been through the changelog but didn't find anything relevant (but there are quite a few of them so I could have missed some). I've run cargo test --all-features but didn't do any other kind of testing.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 26, 2026
Comment thread futures-macro/Cargo.toml
proc-macro2 = "1.0.60"
quote = "1.0"
syn = { version = "2.0.52", features = ["full"] }
syn = { version = "3.0", features = ["full"] }

@AudaciousAxiom AudaciousAxiom Jul 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, it should also be possible to allow both, to avoid bringing in the v3 in dependents that still depend on the v2 and don't (yet) require the v3:

Suggested change
syn = { version = "3.0", features = ["full"] }
syn = { version = ">= 2.0.52, < 4.0", features = ["full"] }

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants