[derive] Support #[zerocopy(crate = "...")] attribute#2452
[derive] Support #[zerocopy(crate = "...")] attribute#2452joshlf merged 1 commit intogoogle:mainfrom
#[zerocopy(crate = "...")] attribute#2452Conversation
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
joshlf
left a comment
There was a problem hiding this comment.
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 |
joshlf
left a comment
There was a problem hiding this comment.
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
|
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::zerocopywill 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.