rustbreak icon indicating copy to clipboard operation
rustbreak copied to clipboard

support speedy https://docs.rs/speedy/

Open gcxfd opened this issue 4 years ago • 1 comments

speedy is faster than bincode https://docs.rs/speedy/

gcxfd avatar Feb 19 '21 02:02 gcxfd

Heya!

I built rustbreak with the explicit idea that there will be other serialization libraries in the future, which is why there is the DeSerializer. With that trait you can implement your own DeSerializer for any library you wish (and even make a crate out of it, if you think that might be helpful).

I won't be adding more different DeSerializers to the main crate though, so it would be up to you to make one. Don't worry though, it is very easy to do as can be seen in the ones in the crate:

https://github.com/TheNeikos/rustbreak/blob/c208619c5c0dd8e29b53fb3962746ad3eb39235c/src/deser.rs#L98-L108

Hope that helps!

TheNeikos avatar Feb 20 '21 07:02 TheNeikos