Skip to content

Commit

Permalink
Merge pull request #750 from uuid-rs/feat/dependency-upgrades
Browse files Browse the repository at this point in the history
Update atomic and zerocopy to latest
  • Loading branch information
KodrAus committed Mar 21, 2024
2 parents 1d123ec + 2fe764f commit 90323a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ version = "1.1.3"
# See: https://github.com/uuid-rs/uuid/issues/588
[dependencies.zerocopy]
optional = true
version = "0.6"
version = "0.7"
features = ["derive"]

# Public: Used in trait impls on `Uuid`
[dependencies.borsh]
Expand Down Expand Up @@ -154,7 +155,7 @@ optional = true
[dependencies.atomic]
default-features = false
optional = true
version = "0.5"
version = "0.6"

# Private
[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dependencies.wasm-bindgen]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ extern crate std;
extern crate core as std;

#[cfg(all(uuid_unstable, feature = "zerocopy"))]
use zerocopy::{AsBytes, FromBytes, Unaligned};
use zerocopy::{AsBytes, FromBytes, FromZeroes, 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, Unaligned)
derive(AsBytes, FromBytes, FromZeroes, Unaligned)
)]
#[cfg_attr(
feature = "borsh",
Expand Down

0 comments on commit 90323a1

Please sign in to comment.