#zeromq #encode #decode #data-encoding #chunk #mechanism #padding

z85

Rust implementation of ZeroMQ's Z85 encoding mechanism with padding

16 stable releases (3 major)

3.0.5 Apr 12, 2022
3.0.4 Oct 27, 2021
3.0.3 Jul 23, 2021
3.0.2 Oct 24, 2020
0.1.3 Jun 9, 2015

#157 in Encoding

Download history 87237/week @ 2024-06-11 95286/week @ 2024-06-18 130530/week @ 2024-06-25 96720/week @ 2024-07-02 91718/week @ 2024-07-09 86546/week @ 2024-07-16 91950/week @ 2024-07-23 98751/week @ 2024-07-30 76517/week @ 2024-08-06 70403/week @ 2024-08-13 67869/week @ 2024-08-20 56703/week @ 2024-08-27 64661/week @ 2024-09-03 59149/week @ 2024-09-10 58042/week @ 2024-09-17 48315/week @ 2024-09-24

233,633 downloads per month
Used in 29 crates (8 directly)

MIT/Apache

11KB
235 lines

Rust library of Z85, ZEROMQ's binary-to-text encoding mechanism. https://rfc.zeromq.org/spec:32/Z85/

Starting from 3.0 version, this library adds padding support, which makes it not fully compatible with ZeroMQ's RFC.

Here is how padding works: 85^5 is bigger than 2^32, therefore a five-byte Z85 data chunk cannot start with '#'. Count of this char sets how many bytes are missing from the tail chunk.


lib.rs:

Rust implementation of ZeroMQ's Z85 encoding mechanism.

No runtime deps