-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Convert zvariant_utils
macros to proc macros
#820
Comments
Sure, would you prefer if I add support for multiple lists or convert it to a proc macro? |
Awesome! 👍
We need both actually but please prioritize conversion to proc macro first please and then it'd be easier for me (or anyone else) to add multiple lists support, in case you run out of time. The use case for multiple lists is #807, where we would want BTW, don't forget to bump the major version of |
@turbocool3r Hey, any luck? |
@zeenix hey, didn't have a lot of free time lately. Hopefully will get to it this weekend |
Still no luck? :) |
The thing is that we're now preparing for 5.0 and it would be a perfect time for #807 but that's a bit difficult with these macros not supporting a list of attributes. I did spend a weekend trying to add this but I found the macro code to be very difficult. Since you're the author of these macros, I was hoping it would be easier task for you to handle this. As I wrote before, conversion to proc macros can wait. However, if you don't see yourself having any time for this any time soon, that's perfectly understandable (it's your time after all) but I'd appreciate a more realistic answer so I can plan things accordingly. 🙏 |
Hey, sorry for the long delay, totally forgot about this. Sure, I'll look into it this evening. 👍 |
So I took a look and it really looks like adding support for lists is much easier than rewriting the I've written a patch to add support for multiple lists here turbocool3r@0ec3e83. It's quite small and simple, the macro is simplified even more now. Can you take a look? If you still prefer a proc macro, I'll try to make it. |
I thought as much. :)
I understood from @GuillaumeGomez that it wouldn't. Probably cause it's not a derive or attribute macro? 🤔
Awesome! 👍
Sure but why not send a PR? :) Easier to review that way. BTW, a typo there:
As I explained before, that'd be great but it doesn't need to block support for lists. |
If it's proc-macro to be used in the same crate, you'll need to move them out to another crate (if that is the current situation). |
hmm.. actually no. The macro will live in |
Thanks, I confused
Sure, will do in a couple of minutes |
@turbocool3r Thanks so much for #986. In case you already had some WIP branch for this, please rebase it on latest |
Thanks for the review.
I didn't yet, but I'll have it today or tomorrow. Didn't want to start it before #986 gets merged. |
At least
def_attrs
, which is quite complex formacro_rules
. I was trying to modify it to allow multiple lists but it turned out to be a whole day of cleaning up the macro and still can't figure it out. 😠@turbocool3r Any chance you'll be able and willing to help with this?
The text was updated successfully, but these errors were encountered: