protobin 0.6.0

A rust crate with basic functions to encode & decode Protocol Buffer binary messages.
Documentation
1
2
3
4
5
6
7
8
9
use protobin::wire::*;

fn main() {
    let values = [2, 1, 0, -1, -2];
    for value in values {
        let v = WireVarInt::from_sint32(value);
        println!("{value} => {}", v.raw());
    }
}