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

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

#128 in Encoding

Download history 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 58048/week @ 2024-09-17 58566/week @ 2024-09-24 62885/week @ 2024-10-01 50976/week @ 2024-10-08 44704/week @ 2024-10-15 25040/week @ 2024-10-22 21372/week @ 2024-10-29 19253/week @ 2024-11-05 21373/week @ 2024-11-12

91,209 downloads per month
Used in 35 crates (9 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