Open lzybkr opened 7 years ago
I would be interested in this as well. However, it is not as simple as just adding #[derive(Serialize, Deserialize)]
, since BitSet
uses a bit vector implementation that itself is also not serializable.
Also modifying BitVec
would make this work. I will implement some tests and write a pull request for that.
I created a branch that introduces serialization support (see here). I will create a PR once the PR for BitVec
went through, since the changes there are required to make serialization for BitSet
work.
@HenningTimm Thanks. I'll make sure the changes go through.
Edit: currently bit-set and bit-vec are in feature freeze mode, unfortunately.
The required changes to bit-vec
are now there.
It would be useful if
bit_set::BitSet
supported serialization forserde
. Today, if I add aBitSet
to my struct, I get the following compiler errors because codegen can't automatically generate serialization forBitSet
: