femtopb 0.2.0

A no-std, no-alloc set of tools for protobuf encoding and decoding
Documentation
1
2
3
4
5
6
7
8
9
crate::runtime::macros::varint!('a, i32, crate::item_encoding::SInt32,
    to_uint64: |value| {
        ((value << 1) ^ (value >> 31)) as u32 as u64
    },
    from_uint64: |value| {
        let value = value as u32;
        ((value >> 1) as i32) ^ (-((value & 1) as i32))
    }
);