Skip to content

v0.6.0

Choose a tag to compare

@JEnoch JEnoch released this 30 May 11:16
· 34 commits to master since this release
1461d9e

Changelog:

  • API change: Remove UUID support (#9).
    uhlc::ID is still a non-zero u128, but not necessarily a UUID. As a consequence:
    • The uhlc::ID::from(uuid: Uuid) operation has been removed.
      An ID can still be created from an Uuid as such:
      let id = ID::try_from([uuid.to_bytes_le()](uuid::Uuid::new_v4())).unwrap()
    • The uhlc::ID::as_slice(&self) operation has been removed.
      A minimal slice (i.e.: only non-zero bytes) of the le-encoded ID can be retrieved as such:
      let id_as_slice = id.to_le_bytes()[..id.size()]
    • The uhlc::ID::to_le_bytes(&self) operation has been added
    • The uhlc::ID::rand() -> Self operation has been added