newtype-uuid
Newtype wrapper around UUIDs
1.4.0
9.2M downloads/mo
#3255 most downloaded on crates.io
oxidecomputer/newtype-uuid
What this package is like to depend on
Last release 26 days ago
28 Jul 2026
Release timing varies
gaps range from 2 weeks to 9 months
Nearly every release is documented
notes for 15 of 15 stable releases
2 versions withdrawn
withdrawn after publishing
3 years old
17 releases · first in 2024
3 releases in the last 12 months
see the full history below
Release timeline
17 releases · Jan 2024 to Jul 2026Releases
latest 17-
1.4.028 Jul 2026Release notes
Open source →Added
TagErrorandParseErrornow implementcore::error::Errorrather than merelystd::error::Error.
Changed
- MSRV updated to Rust 1.85.
- The minimum supported
uuidversion is now 1.21.0.
Release notes
Open source →Added
TagErrorandParseErrornow implementcore::error::Errorrather than merelystd::error::Error.
Changed
- MSRV updated to Rust 1.85.
- The minimum supported
uuidversion is now 1.21.0.
-
1.3.207 Nov 2025Release notes
Open source →Added
as_fields,to_fields_le,as_u128,to_u128_le,as_u64_pair,as_bytes,into_bytes,to_bytes_le,is_nil, andis_maxmethods to mirror corresponding methods on upstreamUuid.
Release notes
Open source →Added
as_fields,to_fields_le,as_u128,to_u128_le,as_u64_pair,as_bytes,into_bytes,to_bytes_le,is_nil, andis_maxmethods to mirror corresponding methods on upstreamUuid.
-
1.3.130 Sep 2025Release notes
Open source →Added
- New
v7feature allows for v7 UUIDs to be created. Thanks davidbarsky for your first contribution!
Fixed
Replaced obsolete
doc_auto_cfgwithdoc_cfg, to fix Rust nightly builds with thedoc_cfgflag enabled.Release notes
Open source →Added
- New
v7feature allows for v7 UUIDs to be created. Thanks davidbarsky for your first contribution!
Fixed
Replaced obsolete
doc_auto_cfgwithdoc_cfg, to fix Rust nightly builds with thedoc_cfgflag enabled. - New
-
1.3.019 Aug 2025 withdrawnRelease notes
Open source →Added
- For schemars integration, automatic replacement support with
typifyandprogenitorvia the newx-rust-typeextension. - The
TypedUuidKindtrait has a new optional method calledalias, which represents a type alias.aliasis used by schemars integration in a few ways: for the schema name ofTypedUuid<T>, as well as for automatic replacement support.
Changed
- MSRV updated to Rust 1.79.
Release notes
Open source →Added
- For schemars integration, automatic replacement support with
typifyandprogenitorvia the newx-rust-typeextension. - The
TypedUuidKindtrait has a new optional method calledalias, which represents a type alias.aliasis used by schemars integration in a few ways: for the schema name ofTypedUuid<T>, as well as for automatic replacement support.
Changed
- MSRV updated to Rust 1.79.
- For schemars integration, automatic replacement support with
-
1.2.417 Jun 2025Release notes
Open source →Added
New
upcastmethod enables safer conversion of one typed UUID to another. To opt into an upcast fromTypedUuid<T>toTypedUuid<U>, implementFrom<T> for U.Release notes
Open source →Added
New
upcastmethod enables safer conversion of one typed UUID to another. To opt into an upcast fromTypedUuid<T>toTypedUuid<U>, implementFrom<T> for U. -
1.2.317 Jun 2025 withdrawnRelease notes
Open source →Added
New
castmethod enables safer conversion of one typed UUID to another. To opt into a cast fromTypedUuid<T>toTypedUuid<U>, implementFrom<T> for U. -
1.2.225 May 2025Release notes
Open source →Added
Added the following implementations:
AsRef<[u8]>forTypedUuid<T>.From<TypedUuid<T>> for Vec<u8>.
Release notes
Open source →Added
Added the following implementations:
AsRef<[u8]>forTypedUuid<T>.From<TypedUuid<T>> for Vec<u8>.
-
1.2.115 Jan 2025 -
1.2.015 Jan 2025Release notes
Open source →Added
- New, optional feature
proptest1enables support for generating random instances of UUIDs. Currently, v4 UUIDs are always generated.
Changed
- MSRV updated to Rust 1.67.
- New, optional feature
-
1.1.307 Nov 2024Release notes
Open source →Added
- Add a
Defaultimplementation forTypedUuid. This implementation resolves toTypedUuid::nil().
- Add a
-
1.1.208 Oct 2024Release notes
Open source →Added
More const constructors for typed UUIDs, mirrored from the
uuidcrate:from_fields,from_fields_le,from_u128,from_u128_le,from_u64_pair,from_bytes, andfrom_bytes_le.Fixed
Correct doc for
as_untyped_uuid. Thanks @Dr-Emann for your first contribution! -
1.1.012 Apr 2024Release notes
Open source →Added
TypedUuid::nil()andmax()constructors.TypedUuidis now#[repr(transparent)].
Changed
- MSRV updated to Rust 1.61.
-
1.0.116 Feb 2024Release notes
Open source →Breaking changes
GenericUuid::to_generic_uuidhas been renamed toGenericUuid::into_generic_uuid.
Changed
- Added
#[must_use]annotations to constructors.
-
0.3.002 Feb 2024Release notes
Open source →Breaking changes
TypedUuidTag::try_newreturns a newTagErrortype rather than just a raw&'static str.
Changed
TypedUuidTag::as_stris now aconst fn.
-
0.2.102 Feb 2024 -
0.2.001 Feb 2024Release notes
Open source →Breaking changes
TypedUuidTags are now required to be valid ASCII identifiers, with hyphens also supported.
Misc
- Added
#[forbid(unsafe_code)]. Thanks Robert Lynch for the contribution!
-
0.1.031 Jan 2024Release notes
Open source →Initial release.
<!-- next-url --> [1.4.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.4.0 [1.3.2]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.3.2 [1.3.1]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.3.1 [1.3.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.3.0 [1.2.4]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.4 [1.2.3]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.3 [1.2.2]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.2 [1.2.1]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.1 [1.2.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.2.0 [1.1.3]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.1.3 [1.1.2]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.1.2 [1.1.1]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.1.1 [1.1.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.1.0 [1.0.1]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.0.1 [1.0.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-1.0.0 [0.3.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-0.3.0 [0.2.1]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-0.2.1 [0.2.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-0.2.0 [0.1.0]: https://github.com/oxidecomputer/newtype-uuid/releases/newtype-uuid-0.1.0