Skip to content

Commit

Permalink
feat: upgrade zerocopy to 0.8
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Oct 13, 2024
1 parent c5ecc4a commit 12a7d04
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ rustdoc-args = ["--cfg", "docsrs"]
bitflags = { version = "2", optional = true }
bytemuck = { version = "1", optional = true }
bytemuck_derive = { version = "1", optional = true }
zerocopy = { version = "0.7", optional = true, default-features = false }
zerocopy-derive = { version = "0.7", optional = true }
zerocopy = { version = "0.8", optional = true, default-features = false }
zerocopy-derive = { version = "0.8", optional = true }

[features]
bitflags = ["dep:bitflags"]
Expand Down
10 changes: 6 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ use core::{fmt, mem};
#[cfg_attr(
feature = "zerocopy",
derive(
zerocopy_derive::FromZeroes,
zerocopy_derive::KnownLayout,
zerocopy_derive::Immutable,
zerocopy_derive::FromBytes,
zerocopy_derive::AsBytes
zerocopy_derive::IntoBytes,
)
)]
#[derive(Default, Hash, PartialEq, Eq, Clone, Copy)]
Expand Down Expand Up @@ -149,9 +150,10 @@ pub struct Be<T>(pub T);
#[cfg_attr(
feature = "zerocopy",
derive(
zerocopy_derive::FromZeroes,
zerocopy_derive::KnownLayout,
zerocopy_derive::Immutable,
zerocopy_derive::FromBytes,
zerocopy_derive::AsBytes
zerocopy_derive::IntoBytes,
)
)]
#[derive(Default, Hash, PartialEq, Eq, Clone, Copy)]
Expand Down

0 comments on commit 12a7d04

Please sign in to comment.