Skip to content

Commit 14b2420

Browse files
committed
Upgrade zerocopy to 0.8
1 parent 4b4c590 commit 14b2420

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ version = "1.1.3"
108108
# See: https://github.com/uuid-rs/uuid/issues/588
109109
[dependencies.zerocopy]
110110
optional = true
111-
version = "0.7"
111+
version = "0.8"
112112
features = ["derive"]
113113

114114
# Public: Used in trait impls on `Uuid`

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ extern crate std;
223223
extern crate core as std;
224224

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

228228
mod builder;
229229
mod error;
@@ -438,7 +438,7 @@ pub enum Variant {
438438
#[derive(Clone, Copy, Eq, Hash, Ord, PartialEq, PartialOrd)]
439439
#[cfg_attr(
440440
all(uuid_unstable, feature = "zerocopy"),
441-
derive(AsBytes, FromBytes, FromZeroes, Unaligned)
441+
derive(IntoBytes, FromBytes, KnownLayout, Immutable, Unaligned)
442442
)]
443443
#[cfg_attr(
444444
feature = "borsh",

0 commit comments

Comments
 (0)