Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ md5 = ["dep:md-5"]
atomic = ["dep:atomic"]

borsh = ["dep:borsh", "dep:borsh-derive"]
bincode2 = ["dep:bincode"]

# Public: Used in trait impls on `Uuid`
[dependencies.bytemuck]
Expand All @@ -104,6 +105,14 @@ version = "2"
optional = true
version = "1.1.3"

# Public: Used in trait impls on `Uuid`
[dependencies.bincode]
default-features = false
features = ["derive"]
optional = true
version = "2.0"


# Public (unstable): Used in `zerocopy` derive
# Unstable: also need RUSTFLAGS="--cfg uuid_unstable" to work
# This feature may break between releases, or be removed entirely before
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ pub enum Variant {
feature = "bytemuck",
derive(bytemuck::Zeroable, bytemuck::Pod, bytemuck::TransparentWrapper)
)]
#[cfg_attr(feature = "bincode2", derive(bincode::Decode, bincode::Encode))]
pub struct Uuid(Bytes);

impl Uuid {
Expand Down