Registry / utility / hexlit

hexlit

JSON →
library0.5.5rscratesunverified

A zero-allocation no_std-compatible zero-cost way to convert hex-strings to byte-arrays at compile time.

# Cargo.toml [dependencies] hexlit = "0.5.5"
INSTALL
IMPORT
SIG · HEXLIT
H
hexlit
utilityrustv0.5.5
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.

hex
use hexlit::hex;

Converts a hex string literal to a byte array at compile time.

use hexlit::hex; fn main() { let bytes: &[u8] = hex!("deadbeef"); assert_eq!(bytes, &[0xde, 0xad, 0xbe, 0xef]); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hexlit — cargo add hexlit · libregistry