ferrilab / bitvec

A crate for managing memory bit by bit
https://myrrlyn.net/crates/bitvec
MIT License
1.17k stars 110 forks source link

Conversion between similar crates #274

Open pczarn opened 5 days ago

pczarn commented 5 days ago

Hey,

I am the maintainer of bit-vec. I can see that your crate is doing great too.

For the sake of completeness, could you add a small optional feature for quick conversion between BitVecs with bit-vec as an optional dependency of bitvec? This way, users can benefit from bitvec when using the one of many libraries that use the other crate.

Not sure whether it's best to add this to one crate, other crate, or both.

Thanks.

pczarn commented 4 days ago

We have from_raw_parts and to_raw_parts etc. so I'll just make a new crate with some unsafe code and extra care.