Releases: oxidecomputer/newtype-uuid
Releases · oxidecomputer/newtype-uuid
newtype-uuid 1.2.4
Added
New upcast
method enables safer conversion of one typed UUID to another. To opt into an upcast from TypedUuid<T>
to TypedUuid<U>
, implement From<T> for U
.
newtype-uuid 1.2.3
Added
New cast
method enables safer conversion of one typed UUID to another. To opt into a cast from TypedUuid<T>
to TypedUuid<U>
, implement From<T> for U
.
newtype-uuid 1.2.2
Added
Added the following implementations:
AsRef<[u8]>
forTypedUuid<T>
.From<TypedUuid<T>> for Vec<u8>
.
newtype-uuid 1.2.1
Updated MSRV in readme.
newtype-uuid 1.2.0
Added
- New, optional feature
proptest1
enables support for generating random instances of UUIDs. Currently, v4 UUIDs are always generated.
Changed
- MSRV updated to Rust 1.67.
newtype-uuid 1.1.3
Added
- Add a
Default
implementation forTypedUuid
. This implementation resolves
toTypedUuid::nil()
.
newtype-uuid 1.1.2
Added
More const constructors for typed UUIDs, mirrored from the uuid
crate: from_fields
,
from_fields_le
, from_u128
, from_u128_le
, from_u64_pair
, from_bytes
, and from_bytes_le
.
Fixed
Correct doc for as_untyped_uuid
. Thanks @Dr-Emann for your first contribution!
newtype-uuid 1.1.0
Added
TypedUuid::nil()
andmax()
constructors.TypedUuid
is now#[repr(transparent)]
.
Changed
- MSRV updated to Rust 1.61.
newtype-uuid 1.0.1
Breaking changes
GenericUuid::to_generic_uuid
has been renamed toGenericUuid::into_generic_uuid
.
Changed
- Added
#[must_use]
annotations to constructors.
newtype-uuid 0.3.0
Breaking changes
TypedUuidTag::try_new
returns a newTagError
type rather than just a raw&'static str
.
Changed
TypedUuidTag::as_str
is now aconst fn
.