#serde #serialization #hex

hex-wrapper

Wrappers of the convertion between numbers and hex strings

7 stable releases

Uses new Rust 2021

1.2.1 Dec 18, 2021
1.1.1 Dec 18, 2021
1.1.0 Dec 16, 2021
1.0.2 Dec 9, 2021
1.0.1 Sep 2, 2021

#665 in Encoding

Download history 30/week @ 2022-01-17 27/week @ 2022-01-24 51/week @ 2022-01-31 24/week @ 2022-02-07 13/week @ 2022-02-21 1/week @ 2022-02-28 21/week @ 2022-03-14 41/week @ 2022-03-21 4/week @ 2022-03-28 7/week @ 2022-04-04 4/week @ 2022-04-11 5/week @ 2022-04-18 41/week @ 2022-04-25 64/week @ 2022-05-02

114 downloads per month

MIT/Apache

20KB
298 lines

The hex-wrapper is a collection of wrappers of the convertion between numbers and hex strings.

See the docs.rs for usages.


lib.rs:

hex-wrapper provides N-bit unsigned hexadecimal numbers.

Roughly speaking, Hex converts between uN and (lowercase) [String] hexadecimally.

Features

Defaults are all off.

  • rand: Enables random constructors HexN::rand() or HexN::with_rng().
  • serde: Enables conversion used in [serde] (e.g. for json).

Traits

Each hex trait implements the following traits:

Dependencies

~0–650KB
~13K SLoC