Skip to content

Allow using syn 3 as a dependency - #72

Merged
wrenger merged 2 commits into
wrenger:mainfrom
bonzini:syn3
Jul 26, 2026
Merged

Allow using syn 3 as a dependency#72
wrenger merged 2 commits into
wrenger:mainfrom
bonzini:syn3

Conversation

@bonzini

@bonzini bonzini commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Since the code of bitfield-struct-rs does not need any change to compile against syn 3, allow either major version as the dependency. This avoids having to build multiple copies syn for users of bitfield-struct-rs.

bitfield-struct-rs itself needs syn 2 as a dev dependency due to defmt; but this does not extend to its users, as long as they don't use the defmt feature.

CI is adjusted to test both syn 2 and syn 3.

@bonzini

bonzini commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

CI run available at bonzini/bitfield-struct-rs#1.

@wrenger

wrenger commented Jul 26, 2026

Copy link
Copy Markdown
Owner

This looks good, thanks for contributing :)

@wrenger
wrenger merged commit 3c6b450 into wrenger:main Jul 26, 2026
4 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.

2 participants