Skip to content

Releases: oxidecomputer/newtype-uuid

newtype-uuid 1.3.2

07 Nov 03:26

Choose a tag to compare

Added

  • as_fields, to_fields_le, as_u128, to_u128_le, as_u64_pair, as_bytes, into_bytes, to_bytes_le, is_nil, and is_max methods to mirror corresponding methods on upstream Uuid.

newtype-uuid 1.3.1

30 Sep 20:35

Choose a tag to compare

Added

  • New v7 feature allows for v7 UUIDs to be created. Thanks davidbarsky for your first contribution!

Fixed

Replaced obsolete doc_auto_cfg with doc_cfg, to fix Rust nightly builds with the doc_cfg flag enabled.

newtype-uuid-macros 0.1.0

19 Aug 20:37

Choose a tag to compare

Initial release, with the impl_typed_uuid_kinds macro.

newtype-uuid 1.3.0

19 Aug 20:39

Choose a tag to compare

Added

  • For schemars integration, automatic replacement support with typify and progenitor via the new x-rust-type extension.
  • The TypedUuidKind trait has a new optional method called alias, which represents a type alias. alias is used by schemars integration in a few ways: for the schema name of TypedUuid<T>, as well as for automatic replacement support.

Changed

  • MSRV updated to Rust 1.79.

newtype-uuid 1.2.4

17 Jun 21:50

Choose a tag to compare

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

17 Jun 00:33

Choose a tag to compare

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

25 May 03:12

Choose a tag to compare

Added

Added the following implementations:

  • AsRef<[u8]> for TypedUuid<T>.
  • From<TypedUuid<T>> for Vec<u8>.

newtype-uuid 1.2.1

15 Jan 04:11

Choose a tag to compare

Updated MSRV in readme.

newtype-uuid 1.2.0

15 Jan 04:05

Choose a tag to compare

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

07 Nov 10:14

Choose a tag to compare

Added

  • Add a Default implementation for TypedUuid. This implementation resolves
    to TypedUuid::nil().