In order to easily use `FromBytes`, add it to the prelude. This adds both the trait (`zerocopy::FromBytes`) as well as the derive macro (`zerocopy_derive::FromBytes`). We will be adding more as we need them.
Showing the changes to rust/kernel (1 of 1 file). Show all
Unified · Split
| @@ -60,6 +60,12 @@ pub use pin_init::{ · 59 unmodified lines | |||
| 60 | Zeroable, // | 60 | Zeroable, // |
| 61 | }; | 61 | }; |
| 62 | 62 | ||
| 63 | #[doc(no_inline)] | ||
| 64 | pub use zerocopy::FromBytes; | ||
| 65 | |||
| 66 | #[doc(no_inline)] | ||
| 67 | pub use zerocopy_derive::FromBytes; | ||
| 68 | |||
| 63 | #[doc(no_inline)] | 69 | #[doc(no_inline)] |
| 64 | pub use super::{ | 70 | pub use super::{ |
| 65 | alloc::{ | 71 | alloc::{ |