-
Notifications
You must be signed in to change notification settings - Fork 126
[derive] Support #[zerocopy(crate = "...")]
attribute
#2452
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2452 +/- ##
=======================================
Coverage 90.38% 90.38%
=======================================
Files 18 18
Lines 7288 7288
=======================================
Hits 6587 6587
Misses 701 701 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
553f616
to
bb297d5
Compare
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.
Thanks so much for your work on this! I left a few minor comments, but overall this looks great!
I've put up #2456 to migrate |
bb297d5
to
523954f
Compare
Thanks for getting that builder in, certainly simplified things! I found that the padding macros in |
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.
One more small nit, but otherwise this looks great!
np!
Yeah, agreed that |
523954f
to
b248cb1
Compare
Read the `#[zerocopy(crate = "...")]` attribute (if present), and use the provided path in the derive output when referencing items exported from zerocopy. If the attribute isn't present, then `::zerocopy` will be used.
b248cb1
to
2dea8f2
Compare
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.
Fantastic, thanks again!
No problem, thank you for all your work! |
This is now available in 0.8.24. |
Read the
#[zerocopy(crate = "...")]
attribute (if present), and use the provided path in the derive output when referencing items exported from zerocopy. If the attribute isn't present, then::zerocopy
will be used.Attention is still needed on the test case. It currently functions on a subset of zerocopy traits using a similar technique to serde.