#varint #protobuf #buffer #protocols #codec #google #read

yanked varmint

A Rust implementation of the varint codec as used in Google's Protocol Buffers

Uses old Rust 2015

0.1.3 Apr 29, 2018
0.1.2 Nov 5, 2016
0.1.1 Nov 3, 2016
0.1.0 Nov 1, 2016

#38 in #varint

Download history 13/week @ 2024-07-21 78/week @ 2024-07-28 18/week @ 2024-08-04 17/week @ 2024-08-11 19/week @ 2024-08-18 19/week @ 2024-08-25 28/week @ 2024-09-01 22/week @ 2024-09-08 21/week @ 2024-09-15 35/week @ 2024-09-22 28/week @ 2024-09-29 3/week @ 2024-10-06 19/week @ 2024-10-13 24/week @ 2024-10-20 30/week @ 2024-10-27 30/week @ 2024-11-03

103 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

18KB
303 lines

varmint travis-badge cargo-badge license-badge

A Rust implementation of the varint codec as used in Google's Protocol Buffers. Adds read_*/write_* methods for various sizes of varints on top of the standard IO traits.

Developing

This project uses clippy and denies warnings in CI builds. To ensure your changes will be accepted please check them with cargo clippy (available via cargo install clippy on nightly rust) before submitting a pull request (along with cargo test as usual).

Both the nightly date and clippy version used in CI are pinned in the .travis.yml as clippy sometimes breaks for a few days after a new nightly is published, feel free to update to a new known good pair anytime as part of a pull request.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

No runtime deps