tov / succinct-rs

Succinct Data Structures for Rust
Apache License 2.0
56 stars 15 forks source link

Support Serialize/Deserialize #2

Closed ISibboI closed 5 years ago

ISibboI commented 5 years ago

It would be awesome if this would support serde's Serialize and Deserialize.

tov commented 5 years ago

I don’t think that would be too difficult, but I'm wondering which types you want it for.

I've extracted the bitvector data structure into another crate, and the version there is better at this point. It supports serde serialization/deserialization already, if you enable the serde feature in Cargo. I'm planning to make the succinct crate depend on the bv crate at some point rather than defining its own bitvectors, and at that point I will probably make the other types in succinct support serde as well. (I don't think I'll have time to do it this month, though.)

ISibboI commented 5 years ago

Thank you for the hint, I did not know about that. Then I will use this crate.