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

Add adapter newtype or macro option to work with syn::Parse #62

Closed
TedDriggs opened this issue Feb 9, 2019 · 1 comment
Closed

Add adapter newtype or macro option to work with syn::Parse #62

TedDriggs opened this issue Feb 9, 2019 · 1 comment

Comments

@TedDriggs
Copy link
Owner

The syn::parse_macro_input! macro and synattra crate both use the syn::Parse trait to do their work. Anything that implements one of darling's traits should be able to implement that. A blanket impl is probably impossible, so the choices are:

  1. Provide a generic newtype wrapper and implement it on that.
  2. Add a new option to the code generator to also implement the Parse trait.
  3. Do both.
@TedDriggs
Copy link
Owner Author

This doesn't seem to be as feasible as I'd hoped, so in the absence of demand I'm closing this.

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

1 participant