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

z85

Rust implementation of ZeroMQ's Z85 encoding mechanism with padding

17 stable releases (3 major)

new 3.0.6 Feb 4, 2025
3.0.5 Apr 12, 2022
3.0.4 Oct 27, 2021
3.0.3 Jul 23, 2021
0.1.3 Jun 9, 2015

#125 in Encoding

Download history 27103/week @ 2024-10-18 22937/week @ 2024-10-25 19558/week @ 2024-11-01 21593/week @ 2024-11-08 26770/week @ 2024-11-15 21706/week @ 2024-11-22 24124/week @ 2024-11-29 22017/week @ 2024-12-06 21577/week @ 2024-12-13 13971/week @ 2024-12-20 15393/week @ 2024-12-27 24864/week @ 2025-01-03 27358/week @ 2025-01-10 24556/week @ 2025-01-17 22578/week @ 2025-01-24 24769/week @ 2025-01-31

103,546 downloads per month
Used in 39 crates (9 directly)

MIT/Apache

13KB
244 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