Skip to content

impl bytemuck::Pod and Zeroable for Archivedf16 and Archivedbf16#149

Open
AlJohri wants to merge 1 commit into
VoidStarKat:mainfrom
AlJohri:bytemuck-pod-on-archived-f16
Open

impl bytemuck::Pod and Zeroable for Archivedf16 and Archivedbf16#149
AlJohri wants to merge 1 commit into
VoidStarKat:mainfrom
AlJohri:bytemuck-pod-on-archived-f16

Conversation

@AlJohri

@AlJohri AlJohri commented Jun 9, 2026

Copy link
Copy Markdown

Lets users with both rkyv and bytemuck features use bytemuck::cast_slice between the rkyv archive form and native. Pod requires Copy, so also adds #[rkyv(derive(Copy, Clone))] on the source structs.

Pod requires Copy, so also adds `#[rkyv(derive(Copy, Clone))]` on the
source structs. Lets downstream users with both `rkyv` and `bytemuck`
features safely cast slices between the rkyv archive form and native
via `bytemuck::cast_slice` instead of an unsafe `from_raw_parts`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant