#zero-mq #decode-encode #padding #mechanism #zeromq #support

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

#140 in Encoding

Download history 4513/week @ 2023-11-19 4365/week @ 2023-11-26 3762/week @ 2023-12-03 6630/week @ 2023-12-10 9357/week @ 2023-12-17 10327/week @ 2023-12-24 8879/week @ 2023-12-31 12474/week @ 2024-01-07 14382/week @ 2024-01-14 13956/week @ 2024-01-21 16232/week @ 2024-01-28 12602/week @ 2024-02-04 5492/week @ 2024-02-11 11084/week @ 2024-02-18 15068/week @ 2024-02-25 14559/week @ 2024-03-03

47,629 downloads per month
Used in 15 crates (5 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