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

z85

Rust implementation of ZeroMQ's Z85 encoding mechanism with padding

17 stable releases (3 major)

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

#131 in Encoding

Download history 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 29241/week @ 2025-01-31 28841/week @ 2025-02-07 23834/week @ 2025-02-14 29282/week @ 2025-02-21 25999/week @ 2025-02-28

112,661 downloads per month
Used in 40 crates (10 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