Releases: atolab/uhlc-rs
Releases · atolab/uhlc-rs
0.8.0
What's Changed
- Change conversion of NTP64 and Timestamp to/from String (#16).
For bothNTP64
andTimestamp
types the default formatting used byDisplay
trait (and thus byToString
trait) changed. RFC3339 format was used to represent theNTP64
type, which was loosing precision and was not bijective withFromStr
trait (see #15). Now unsigned integer decimal representation is used.
Theto_string_rfc3339_lossy()
andparse_rfc3339()
methods have been added for explicit conversion to RFC3339 format.
Full Changelog: 0.7.0...0.8.0
0.7.0
What's Changed
- Change internal representation of
ID
fromNonZeroU128
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
What's Changed
- Documentation change only: revise comment of
NTP64::as_secs_f64()
Full Changelog: 0.6.2...0.6.3
v0.6.2
v0.6.1
What's Changed
- Bump spin to 0.9.8 @Dylan-DPC in #10
- Fix parsing and displaying of IDs from string by @Mallets in #12
New Contributors
- @Dylan-DPC made their first contribution in #10
Full Changelog: 0.6.0...0.6.1
v0.6.0
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
- The