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

syn 2.0 support #227

Closed
DCNick3 opened this issue Mar 20, 2023 · 2 comments
Closed

syn 2.0 support #227

DCNick3 opened this issue Mar 20, 2023 · 2 comments

Comments

@DCNick3
Copy link
Contributor

DCNick3 commented Mar 20, 2023

Recently (2 days ago) syn has released a new major version.

It brought a slight redesign of how attributes are represented:

  • The syntax tree for Attribute has been redesigned. The new API better accommodates attributes which mix structured and unstructured content at different levels of nesting.
  • AttributeArgs has been removed. Use Punctuated<Meta, Token![,]>.
  • For parsing attribute contents, parse_meta() is superseded by a new parsing library called syn::meta, and the parse_nested_meta method on Attribute.

darling probably has to have some changes incorporated in order to support the new data structures

@DCNick3
Copy link
Contributor Author

DCNick3 commented Mar 20, 2023

Whoops, I haven't noticed the #226 PR that starts addressing this

@TedDriggs
Copy link
Owner

This has been published as part of v0.20.0

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

No branches or pull requests

2 participants