Skip to content

Commit

Permalink
Upgrade zerocopy to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamofek committed Oct 9, 2024
1 parent 4b4c590 commit 14b2420
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 14b2420

Please sign in to comment.