Skip to content

Releases: atolab/uhlc-rs

0.8.0

03 Jul 16:14
34aa0ac
Compare
Choose a tag to compare

What's Changed

  • Change conversion of NTP64 and Timestamp to/from String (#16).
    For both NTP64 and Timestamp types the default formatting used by Display trait (and thus by ToString trait) changed. RFC3339 format was used to represent the NTP64 type, which was loosing precision and was not bijective with FromStr trait (see #15). Now unsigned integer decimal representation is used.
    The to_string_rfc3339_lossy() and parse_rfc3339() methods have been added for explicit conversion to RFC3339 format.

Full Changelog: 0.7.0...0.8.0

0.7.0

25 Mar 13:23
d29fb40
Compare
Choose a tag to compare

What's Changed

  • Change internal representation of ID from NonZeroU128 to [u8;16].
    A change in Rust 1.77 caused the memory alignment for u128 to differ depending the platform, and thus leading to issues for usage through FFI (see eclipse-zenoh/zenoh-c#295). Note that this is not a change of API (just ABI)

Full Changelog: 0.6.3...0.7.0

v0.6.3

15 Sep 14:01
15b3f7d
Compare
Choose a tag to compare

What's Changed

  • Documentation change only: revise comment of NTP64::as_secs_f64()

Full Changelog: 0.6.2...0.6.3

v0.6.2

15 Sep 11:49
cfc70c0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.6.1...0.6.2

v0.6.1

25 Aug 13:32
db3b801
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.6.0...0.6.1

v0.6.0

30 May 11:16
1461d9e
Compare
Choose a tag to compare

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

v0.5.2

23 Jan 15:00
46ca2cd
Compare
Choose a tag to compare

Changelog:

  • Support of no_std environments (#5)
  • New defmt feature for logging in no_std(#6, #7)

v0.5.1

27 Jul 13:24
Compare
Choose a tag to compare

Changelog:

  • Add HLC::get_id(&self) -> &ID and HLC::get_delta(&self) -> &NTP64 accessors (#4)

v0.5.0

14 Jun 15:34
Compare
Choose a tag to compare

Changelog:

  • API change: uhlc::ID::new(size: usize, id: [u8; ID::MAX_SIZE]) is replaced with TryFrom<&[u8; $N]> implementations with $N going from 1 to 16. The size of the ID will corresponds to the slice length.
  • New and more compact (on the stack) internal representation of ID (#3)

v0.4.1

28 Jan 09:17
Compare
Choose a tag to compare

Changelog:

  • Add Hash trait to Timestamp and NTP64