use-hex 0.1.0

Hexadecimal formatting and decoding helpers for RustUse
Documentation
  • Coverage
  • 8.33%
    1 out of 12 items documented1 out of 10 items with examples
  • Size
  • Source code size: 6.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 341.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-encoding
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-hex

Hexadecimal formatting, decoding, and normalization helpers.

Warning: versions below 0.3.0 are experimental and may change as the crate surface is refined.

Example Usage

use use_hex::{hex_decode, hex_encode, normalize_hex, HexCase};

let encoded = hex_encode(b"rust");
let decoded = hex_decode(&encoded);
let normalized = normalize_hex("#FF00AA", HexCase::Lower);

let _ = (encoded, decoded, normalized);

Scope

  • lowercase and uppercase hexadecimal formatting
  • decoding prefixed and unprefixed hex strings
  • prefix helpers and normalization for general text and color-adjacent workflows

Non-Goals

  • color parsing
  • cryptographic hashing
  • binary file parsing frameworks

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0