2.2.1
- MSRV increased to 1.81.
- The
Errortrait is now unconditionally implemented forGuidFromStrError.
2.2.0
- Added
Variantenum andGuid::variantmethod. - Added
Guid::from_random_bytesconstructor. - Added
Guid::is_zeromethod. - Added
Guid::versionmethod. - Conversions of the
time_lowfield to/from bytes now treat that field as native endian rather than little endian. - Fix non-upper-case-globals linter warning.
2.1.0
- Bump MSRV to 1.68.
- Add docstring for
Guid::from_str.
2.0.1
- Fix typo in readme.
2.0.0
- Error messages from
guid!andaligned_guid!have been improved by marking theparse_or_panicmethodtrack_caller. AlignedGuidhas been removed.Guidis now 4-byte aligned.- The fields of
Guidare now private. It is no longer possible to directly constructGuid; one of the constructors such asguid!,Guid::new, orGuid::from_bytesmust be used instead. New accessor methods have been added for each of the internal fields.
1.2.1
- Copied the license files into each package so that the archives on crates.io include them.
1.2.0
- Add
Guid::parse_or_panicandAlignedGuid::parse_or_panic. These have the same functionality as the correspondingtry_parsemethods, except they will panic on failure. This is useful inconstcontexts where the panic is used as a compilation error. - The
guid!andaligned_guid!macros now force const evaluation of the input. This was the intended behavior before, but it was not implemented correctly. Any new compilation failures caused by this change indicate a bug in the calling code.
1.1.1
- Change
Guidback torepr(C)instead ofrepr(C, align(1)). Even though the alignment of the struct is 1-byte either way, structs with any alignment set are not allowed in packed structures so this was a breaking change.
1.1.0 (yanked)
- Add
AlignedGuid, which is identical toGuidexcept the struct is 8-byte aligned instead of 1-byte aligned. - The
GuidandAlignedGuidtypes implementFromfor each other to convert between them. - Add
aligned_guid!macro, which is identical to theguid!macro except it creates anAlignedGuidinstead of aGuid.
This release was yanked due to accidentally changing the repr of Guid.
1.0.4
- Relax version requirements for
bytemuckandserde. - Enable
doc_auto_cfgon docs.rs.
1.0.3
- Fix license links in README, take two.
1.0.2
- Fix license links in README.
1.0.1
- Allow the MIT license to be used in addition to Apache-2.0.
1.0.0
- Make
GuidFromStrErrorinto an enum with three variants to allow for better error messages.
0.7.0
- Add a const
Guid::from_bytesconstructor. - Make
Guid::to_bytesconst. - Remove re-export of
bytemuckdependency. - Make the
bytemuckdependency optional with the newbytemuckfeature.
0.6.0
- Add
Guid::to_ascii_hex_lowermethod. This is a const function that creates a[u8; 36]array containing the GUID in standardxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxformat. - Add
serdefeature (disabled by default) that implements serde'sSerializeandDeserializetraits for theGuidtype. - Remove unused
From<ParseIntError>impl forGuidFromStrError.