-
Notifications
You must be signed in to change notification settings - Fork 142
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
need to deprecate binary_codec_sv2
and restructure binary_sv2
+ derive_codec_sv2
#1462
Comments
one detail coming from #1459 that we should clean up here is some leftover lifetime parameters that were originally motivated by reference: 3f80718#r1947844273 |
binary_codec_sv2
and restructure binary_sv2
+ derive_codec_sv2
Reimplement or redesign parts of |
this will introduce breaking changes to |
as a consequence, we will have to refactor |
Hey, Would it be a good idea to start with introducing quote and syn in code? Also, regarding #1468 (comment) I think we can return a more appropriate error message, something like 'the name of the field cannot be data.' or we could prefix data with an _ or rename it appropriately. What are your thoughts on this? |
SRI leans towards a conservative policy on dependencies for low-level crates as much as |
@plebhash I understand. Would it be alright if I work on this? I'll look into this and any similar bugs that might arise. |
We can refine this approach. If you are familiar with MIR, you can leverage constructs that are valid in MIR but not in Rust source code. This can help in solving the problem. I recommend starting with some good first issues to better understand the codebase first. |
Understood, I'll look into some good first issues. I am not very familiar with MIR, I’ll start exploring it. |
as discussed in the dev call, we're going to leave this refactoring for some time in the future for now, it will be sufficient to fix #1473 |
The current structure of
binary_sv2
does not follow best practices. Typically, a crate defining aproc_macro
only includes an additional crate for the macro’s implementation. However, inbinary_sv2
, we have two separate crates—one for theproc_macro
implementation and another for the primitives required for macro scaffolding. Due to the tightly coupled nature of theproc_macro
implementation with the module structure, restructuring it requires rewriting some parts of the macro to align with the proposed design.Kudos to @plebhash for pointing this out and suggesting a better structure: #1459 (comment)
The text was updated successfully, but these errors were encountered: