const-varint

Crates.ioconst-varint
lib.rsconst-varint
version0.4.2+deprecated
created_at2025-02-03 16:14:26.515298+00
updated_at2025-03-30 16:24:32.943685+00
description(Deprecated) This crate is deprecated. Please use `varing` instead.
homepagehttps://github.com/al8n/varing
repositoryhttps://github.com/al8n/varing
max_upload_size
id1540756
size116,960
Al Liu (al8n)

documentation

https://docs.rs/varing

README

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)

github LoC Build codecov

docs.rs crates.io crates.io license

Installation

[dependencies]
const-varint = "0.4"
  • For u1, u2, u3, .., u127

    const-varint = { version = "0.4", features = "arbitrary-int" }
    
  • For ruint::Uint<BITS, LBITS> support (not compatible in const context)

    const-varint = { version = "0.4", features = ["ruint"] }
    
  • For primitive-types support (not compatible in const context)

    const-varint = { version = "0.4", features = ["primitive-types"] }
    
  • For ethereum-types support (not compatible in const context)

    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.

Commit count: 16

cargo fmt