#string #byte-vector #byte-string #hex #representation #structure #u8

hex-string

a data structure for managing hex strings in both string and byte vector representation

1 unstable release

Uses old Rust 2015

0.1.0 Jan 20, 2019

#2012 in Data structures

Download history 7/week @ 2023-12-09 12/week @ 2023-12-16 26/week @ 2023-12-23 43/week @ 2023-12-30 40/week @ 2024-01-06 86/week @ 2024-01-13 39/week @ 2024-01-20 70/week @ 2024-01-27 124/week @ 2024-02-03 117/week @ 2024-02-10 210/week @ 2024-02-17 224/week @ 2024-02-24 385/week @ 2024-03-02 230/week @ 2024-03-09 319/week @ 2024-03-16 60/week @ 2024-03-23

1,051 downloads per month
Used in 2 crates

BSD-3-Clause

83KB
142 lines

Contains (rust library, 74KB) result/lib/libhex_string-8e4c740876.rlib

Hex-String

Build Status License

A data structure for managing hex strings and their binary byte vector representations.


lib.rs:

A utilty library for handling Hex strings

The digest operations in sha2 return the result as u8 vectors. But a lot of command line applicaions, like sha256sum, return byte strings. I was unable to find an obvious way to handle this in rust, so this module provides a clear well-defined HexString, loaders from a regular string of hex values and from a vector of bytes, and output representations in both forms.

No runtime deps