Skip to content

Releases: uuid-rs/uuid

1.13.1

05 Feb 05:42
5421417
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.13.0...1.13.1

1.13.0

05 Feb 02:25
1cf1433
Compare
Choose a tag to compare

⚠️ 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 to 0.3 and rand to 0.9 by @KodrAus in #793
  • Support forcing getrandom on wasm32-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

21 Jan 02:10
70831d2
Compare
Choose a tag to compare

What's Changed

  • Fix links to namespaces in documentation by @cstyles in #789
  • use inherent to_be_bytes and to_le_bytes methods by @Vrtgs in #788
  • Reduce bitshifts in from_u64_pair by @KodrAus in #790
  • prepare for 1.12.1 release by @KodrAus in #791

New Contributors

Full Changelog: 1.12.0...1.12.1

1.12.0

14 Jan 11:01
c5f1d02
Compare
Choose a tag to compare

⚠️ Possible Breakage

This release includes additional PartialEq implementations on Uuid, which can break inference in some cases.

What's Changed

New Contributors

Full Changelog: 1.11.1...1.12.0

1.11.1

10 Jan 02:22
42c2d0f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.11.0...1.11.1

1.11.0

16 Oct 04:30
4473398
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.10.0...1.11.0

1.10.0

09 Jul 00:39
4b4c590
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 1.9.1...1.10.0

1.9.1

24 Jun 22:22
36e6f57
Compare
Choose a tag to compare

What's Changed

  • Add an example of generating bulk v7 UUIDs by @KodrAus in #761
  • Avoid taking the shared lock when getting usable bits in Uuid::now_v7 by @KodrAus in #762
  • Prepare for 1.9.1 release by @KodrAus in #763

Full Changelog: 1.9.0...1.9.1

1.9.0

24 Jun 04:24
4a129e7
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 1.8.0...1.9.0

1.8.0

18 Mar 23:57
0f2aaae
Compare
Choose a tag to compare

⚠️ 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

New Contributors

Full Changelog: 1.7.0...1.8.0