17 releases

0.8.0 Nov 1, 2023
0.7.1 Nov 8, 2021
0.7.0 Feb 4, 2021
0.5.1 Sep 8, 2020
0.2.1 Sep 5, 2018

#53 in Encoding

Download history 286390/week @ 2024-12-01 355372/week @ 2024-12-08 317725/week @ 2024-12-15 116533/week @ 2024-12-22 162443/week @ 2024-12-29 320600/week @ 2025-01-05 418781/week @ 2025-01-12 398504/week @ 2025-01-19 417998/week @ 2025-01-26 455825/week @ 2025-02-02 483258/week @ 2025-02-09 389137/week @ 2025-02-16 345242/week @ 2025-02-23 692526/week @ 2025-03-02 537519/week @ 2025-03-09 267920/week @ 2025-03-16

1,869,581 downloads per month
Used in 1,388 crates (145 directly)

MIT license

29KB
456 lines

unsigned-varint encoding

Unsigned varint encodes unsigned integers in 7-bit groups. The most significant bit (MSB) in each byte indicates if another byte follows (MSB = 1), or not (MSB = 0).

For details see: https://github.com/multiformats/unsigned-varint


lib.rs:

Unsigned varint encodes unsigned integers in 7-bit groups. The most significant bit (MSB) in each byte indicates if another byte follows (MSB = 1), or not (MSB = 0).

Dependencies

~0–6.5MB
~25K SLoC