Skip to content

v0.2.1

Choose a tag to compare

@ehsanmok ehsanmok released this 30 Sep 19:26
· 1 commit to main since this release

uuid v0.2.1 moves the library to Mojo 1.1.0.

Toolchain

  • The Mojo pin is now >=1.1.0,<2.0.0 in pixi.toml and recipe.yaml. It was still >=1.0.0,<1.1.0, so the package could not be installed next to packages built for 1.1.
  • The build backend is a range (pixi-build-rattler-build >=0.3.13) instead of an exact pin.
  • mojodoc is pinned to v0.1.1.

Mojo 1.1.0 changes

  • UUID.to_bytes() and uuid4_batch[N]() return Array[UInt8, 16] and Array[UUID, N]. InlineArray is gone from the standard library. Code that only indexes or iterates the result keeps working; code that names the old type in a signature needs from std.collections import Array.
  • String(capacity=...) became String(capacity_bytes=...) inside to_hex and the tests.
  • uuid7() calls gettimeofday with Pointer(to=...) instead of the deprecated UnsafePointer(to=...).
  • The benchmark uses the closure form of Bench.bench_function.

The 72 tests, the benchmark and the example build without warnings on Mojo 1.1.0.

Full Changelog: v0.2.0...v0.2.1