Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): upgrade syn crate #2671

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

build(deps): upgrade syn crate #2671

wants to merge 1 commit into from

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented May 1, 2024

Summary

Upgrade to Syn 2.x.
This brings many breaking changes. This is a painful migration.

For now, I still encounter some issue and as usual debugging macros is so hard...

It is no longer possible to use a keyword as an identifier in attributes.
Thus, I renamed type into use_type for the partial attribute.

I also tried to use the more idiomatic way of writting attribute parsing.
I used teh provded methods for error reporting.
However this seems still very cryptic and unhelpful when something wrong happen.
I still don't understand how to improve error reporting for macros...

Test Plan

CI must pass.

@github-actions github-actions bot added the A-Project Area: project label May 1, 2024
@ematipico
Copy link
Member

Unless there are significant build time gains, I think this isn't needed for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Project Area: project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants