Registry / utility / const-hex

const-hex

JSON →
library1.19.1rscratesunverified

Fast byte array to hex string conversion with const generics.

# Cargo.toml [dependencies] const-hex = "1.19.1"
INSTALL
IMPORT
SIG · CONST-HEX
C
const-hex
utilityrustv1.19.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

const_encode
✓ use const_hex::const_encode;

Encode a byte slice to a hex string at compile time.

use const_hex::const_encode; const BYTES: &[u8] = b"hello"; const HEX: &str = const_encode!(BYTES); fn main() { println!("{}", HEX); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.19.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
const-hex — cargo add const-hex · libregistry