Skip to content

Commit

Permalink
Merge pull request #771 from yotamofek/zerocopy_0.8
Browse files Browse the repository at this point in the history
Upgrade zerocopy to 0.8
  • Loading branch information
KodrAus authored Oct 13, 2024
2 parents 4b4c590 + 14b2420 commit d9b34e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ version = "1.1.3"
# See: https://github.com/uuid-rs/uuid/issues/588
[dependencies.zerocopy]
optional = true
version = "0.7"
version = "0.8"
features = ["derive"]

# Public: Used in trait impls on `Uuid`
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ extern crate std;
extern crate core as std;

#[cfg(all(uuid_unstable, feature = "zerocopy"))]
use zerocopy::{AsBytes, FromBytes, FromZeroes, Unaligned};
use zerocopy::{IntoBytes, FromBytes, Immutable, KnownLayout, Unaligned};

mod builder;
mod error;
Expand Down Expand Up @@ -438,7 +438,7 @@ pub enum Variant {
#[derive(Clone, Copy, Eq, Hash, Ord, PartialEq, PartialOrd)]
#[cfg_attr(
all(uuid_unstable, feature = "zerocopy"),
derive(AsBytes, FromBytes, FromZeroes, Unaligned)
derive(IntoBytes, FromBytes, KnownLayout, Immutable, Unaligned)
)]
#[cfg_attr(
feature = "borsh",
Expand Down

0 comments on commit d9b34e7

Please sign in to comment.