Releases: uuid-rs/uuid
1.13.1
What's Changed
- Fix
wasm32
withatomics
by @bushrat011899 in #797 - Prepare for 1.13.1 release by @KodrAus in #799
New Contributors
- @bushrat011899 made their first contribution in #797
Full Changelog: 1.13.0...1.13.1
1.13.0
⚠️ Potential Breakage
This release updates our version of getrandom
to 0.3
and rand
to 0.9
. It is a potentially breaking change for the following users:
no-std users who enable the rng
feature
uuid
still uses getrandom
by default on these platforms. Upgrade your version of getrandom
and follow its new docs on configuring a custom backend.
wasm32-unknown-unknown
users who enable the rng
feature without the js
feature
Upgrade your version of getrandom
and follow its new docs on configuring a backend.
You'll also need to enable the rng-getrandom
or rng-rand
feature of uuid
to force it to use getrandom
as its backend:
[dependencies.uuid]
version = "1.13.0"
- features = ["v4"]
+ features = ["v4", "rng-getrandom"]
[dependencies.getrandom]
version = "0.3"
If you're on wasm32-unknown-unknown
and using the js
feature of uuid
you shouldn't see any breakage. We've kept this behavior by vendoring in getrandom
's web-based backend when the js
feature is enabled.
What's Changed
- Update
getrandom
to0.3
andrand
to0.9
by @KodrAus in #793 - Support forcing
getrandom
onwasm32-unknown-unknown
without JavaScript by @KodrAus in #794 - Prepare for 1.13.0 release by @KodrAus in #795
Full Changelog: 1.12.1...1.13.0
1.12.1
1.12.0
⚠️ Possible Breakage
This release includes additional PartialEq
implementations on Uuid
, which can break inference in some cases.
What's Changed
- feat: Add
NonZeroUuid
type for optimizedOption<Uuid>
representation by @ab22593k in #779 - Finalize
NonNilUuid
by @KodrAus in #783 - Prepare for 1.12.0 release by @KodrAus in #784
New Contributors
Full Changelog: 1.11.1...1.12.0
1.11.1
What's Changed
- Finish cut off docs by @KodrAus in #777
- Fix links in CONTRIBUTING.md by @jacobggman in #778
- Update rust toolchain before building by @KodrAus in #781
- Prepare for 1.11.1 release by @KodrAus in #782
New Contributors
- @jacobggman made their first contribution in #778
Full Changelog: 1.11.0...1.11.1
1.11.0
What's Changed
- Upgrade zerocopy to 0.8 by @yotamofek in #771
- Prepare for 1.11.0 release by @KodrAus in #772
New Contributors
- @yotamofek made their first contribution in #771
Full Changelog: 1.10.0...1.11.0
1.10.0
Deprecations
This release deprecates and renames the following functions:
Builder::from_rfc4122_timestamp
->Builder::from_gregorian_timestamp
Builder::from_sorted_rfc4122_timestamp
->Builder::from_sorted_gregorian_timestamp
Timestamp::from_rfc4122
->Timestamp::from_gregorian
Timestamp::to_rfc4122
->Timestamp::to_gregorian
What's Changed
- Use const identifier in uuid macro by @Vrajs16 in #764
- Rename most methods referring to RFC4122 by @Mikopet / @KodrAus in #765
- prepare for 1.10.0 release by @KodrAus in #766
New Contributors
Full Changelog: 1.9.1...1.10.0
1.9.1
1.9.0
Uuid::now_v7()
is guaranteed to be monotonic
Before this release, Uuid::now_v7()
would only use the millisecond-precision timestamp for ordering. It now also uses a global 42-bit counter that's re-initialized each millisecond so that the following will always pass:
let a = Uuid::now_v7();
let b = Uuid::now_v7();
assert!(a < b);
What's Changed
- Add a get_node_id method for v1 and v6 UUIDs by @KodrAus in #748
- Update atomic and zerocopy to latest by @KodrAus in #750
- Add repository field to uuid-macro-internal crate by @paolobarbolini in #752
- update docs to updated RFC (from 4122 to 9562) by @Mikopet in #753
- Support counters in v7 UUIDs by @KodrAus in #755
New Contributors
- @paolobarbolini made their first contribution in #752
- @Mikopet made their first contribution in #753
Full Changelog: 1.8.0...1.9.0
1.8.0
⚠️ Potential Breakage ⚠️
A new impl AsRef<Uuid> for Uuid
bound has been added, which can break inference on code like:
let b = uuid.as_ref();
You can fix these by explicitly typing the result of the conversion:
let b: &[u8] = uuid.as_ref();
or by calling as_bytes
instead:
let b = uuid.as_bytes();
What's Changed
- docs: fix small spelling mistake by @bengsparks in #737
- serde serialize_with support by @dakaizou in #735
- Fix up CI builds by @KodrAus in #744
- Only add
wasm-bindgen
as a dependency onwasm32-unknown-unknown
by @emilk in #738 - impl AsRef for Uuid by @koshell in #743
- Add v6 to v8 draft link to README by @KodrAus in #746
- Add a workflow for running cargo outdated by @KodrAus in #745
- Prepare for 1.8.0 release by @KodrAus in #747
New Contributors
- @bengsparks made their first contribution in #737
- @dakaizou made their first contribution in #735
- @emilk made their first contribution in #738
- @koshell made their first contribution in #743
Full Changelog: 1.7.0...1.8.0