Closed andreas closed 1 year ago
I'll rebase on master when #107 is merged.
Sorry @andreas, really struggling to find proper time to review the code, but I'm here :)
Can you please rebase on #107?
Thanks for the update, @saulius!
I've rebased on master
now. Tests are still missing, but I added/updated docs. I'm happy to add tests if the general approach is considered right 🙂
Thanks for a great change @andreas , I agree with @Dr-Emann that this looks like a much Rust-ier interface to serialization. Addition of tests for Native
would be welcomed, of course.
Alright, I've fixed tests and added rudimentary tests for the native format, so I think the changes are ready to be reviewed.
Thanks, @andreas, this looks great!
This PR adds support for the native serialization format from CRoaring. It builds on #105 to get support for
roaring_bitmap_deserialize_safe
. I'm admittedly an absolute newcomer to Rust, so I'd appreciate feedback on how to do this best. I tried a few approaches and found this struck the best balance in terms of aligning with the serialization approach used forTreeMap
, not breaking backwards compatibility, and avoiding a proliferation of (de-)serialization functions onBitmap
. If this approach is acceptable, I'm happy to add tests.