Repository navigation
v5.1.0
It's been a while since the last release as my focus has been elsewhere, but I'm back in the k-d tree groove now
and looking to bring some new features and performance updates over the next few weeks.
The major addition in this release is support for version 0.8 of Rkyv. Rkyv 0.8 is almost a complete rewrite compared to 0.7,
and so this required quite a lot of changes.
Right now, the pre-existing rkyv crate feature still provides support for
Rkyv 0.7 as before, and so the introduction of Rkyv 0.8 is non-breaking. To use Rkyv 0.8, enable the crate feature that is
unsurprisingly named rkyv_08. There are some caveats to Rkyv 0.8 support:
- Use of
rkyvandrkyv_08is mutually exclusive; due to limitations in Rkyv's derive macros and trait system, it seems
impossible to support both at the same time. You may be able to achieve this to a limited extent by importing two versions of Kiddo
at the same time, one withrkyvactivated and the other withrkyv_08, but interop between the two will be limited - You're unlikely to be able to successfully deserialize a tree serialized with Rkyv 0.7 into an Rkyv 0.8 object, and vice-versa.
- Anyone using
rkyvandf16/halfat the same time may encounter issues updating to Rkyv 0.8. This is because thehalf
crate, on which Kiddo's f16 support depends, only supports Rkyv 0.7 at version 2.4.1 and below, and only supports Rkyv 0.8 at versions
2.5.0+. To use f16 in Kiddo with Rkyv 0.8, you need to enable thef16_rkyv_08crate feature to ensure that the correct versions
of both Rkyv and half are pulled in. - Supporting both Rkyv 0.7 and 0.8 in the Kiddo library at the same time is a massive pain and will add significant maintenance burden
going forward. As such, this 5.1.0 version will be the only one that supports both Rkyv 0.7 and Rkyv 0.8. An upcoming version 6
of Kiddo will remove support for Rkyv 0.7 entirely and only support Rkyv 0.8.
All the best! Scott (@sdd)
✨ Features
- Add support for Rkyv v0.8
- Gate
fixedsupport behind a crate feature to reduce compile times - Preallocate binary heap capacity
🧪 Testing
- Fixup rkyv doctests
Ci
- Update github actions to exercise
rkyv_08feature - Update renovate bot config so that it ignores deps that are pined to old versions for legacy feature compatibility
Chore
- address spacing causing clippy lint failure
- Update rust crate rstest to 0.25
- Convert doctest file load
unwraps toexpects to help track down when files are missing - Clean up unused deps and move some deps to dev-deps that did not need to be full deps
- Update to latest versions of rand crates
- Update to latest version of criterion
- Update bincode dev dep to v2 for serde example
- Update
itertoolsdependency to 0.14 - Update formatting to comply with updated clippy rules of recent versions of Rust
- Update rust crate ordered-float to v5