#serialization #byte #string #integer #hex-string #binary-encoding #rug

rug-binserial

A very simple crate to serialize rug integers as strings of bytes (for use in efficient binary serialization)

5 releases

0.2.0 Oct 27, 2021
0.1.3 Apr 26, 2021
0.1.2 Apr 26, 2021
0.1.1 Jan 13, 2021
0.1.0 Jan 12, 2021

#1974 in Encoding

MIT and LGPL-3.0+

7KB
117 lines

Rug-BinSerial

Rug currently serializes integers as hexadecimal strings. This leads to a 2x overhead when using e.g. bincode.

This crate allows converting to/from a struct which is serialized as a vector of bytes. That's it.

Dependencies

~3.5MB
~70K SLoC