-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor!: Refactor to make easy improvements #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we remove attribute
? and then the syntax will be simple
#[patch(attribute(derive(Deserialize, Debug), serde(rename = "foo"))]
->
#[patch(derive(Deserialize, Debug), serde(rename = "foo")]
That's true it would be so much simple ! We just have to be careful to avoid the possibility between the attributes and the patch configuration attributes, but if there is no way to have conflict I can do that. I also thought about this syntax (not sure if it's possible). What do you think?
|
It is good and without |
Yes ok, I'll try that. This could allow code injection but it's his own code and I'll see how the formatter manage that |
I could not implement a good solution for the attribute since the This could be managed with more low level parsing but could not made it this morning. I can look at that but only in a few days. I let the |
Hi @taorepoara, it looks good to me. |
No, that all for this one. I'm working on another PR for other features and I'll try to implement the |
Has explained in the next comment, this refactor makes this project simpler to use and to improve: #24 (comment)
I've based my work on the serde way of parsing AST into structs to make it more usable.
I've also changed the way I manage attributes to make it easier to add new ones.