9 unstable releases (3 breaking)
| 0.4.2+deprecated | Mar 30, 2025 |
|---|---|
| 0.4.1+deprecated | Mar 30, 2025 |
| 0.3.4 |
|
| 0.2.1 | Feb 6, 2025 |
| 0.1.1 | Feb 3, 2025 |
#19 in #leb128
561 downloads per month
Used in 9 crates
(via dbutils)
66KB
1.5K
SLoC
Note: This crate is renamed to varing.
const-varint
Protobuf's varint encoding/decoding with full const context operations supports. (This project is renamed to varing)
Installation
[dependencies]
const-varint = "0.4"
-
For
u1,u2,u3, ..,u127const-varint = { version = "0.4", features = "arbitrary-int" } -
For
ruint::Uint<BITS, LBITS>support (not compatible inconstcontext)const-varint = { version = "0.4", features = ["ruint"] } -
For
primitive-typessupport (not compatible inconstcontext)const-varint = { version = "0.4", features = ["primitive-types"] } -
For
ethereum-typessupport (not compatible inconstcontext)const-varint = { version = "0.4", features = ["ethereum-types"] }
License
const-varint is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.
Dependencies
~0.2–0.8MB
~18K SLoC