7 releases (4 breaking)

0.8.0 Dec 28, 2022
0.7.0 Jul 23, 2022
0.6.2 Jun 29, 2022
0.5.1 Jun 26, 2022
0.1.0 Nov 23, 2021

#1338 in Parser implementations

Download history 2510/week @ 2024-10-23 2427/week @ 2024-10-30 1698/week @ 2024-11-06 1978/week @ 2024-11-13 2425/week @ 2024-11-20 2437/week @ 2024-11-27 2221/week @ 2024-12-04 2274/week @ 2024-12-11 1712/week @ 2024-12-18 1148/week @ 2024-12-25 2006/week @ 2025-01-01 2559/week @ 2025-01-08 2634/week @ 2025-01-15 2483/week @ 2025-01-22 2426/week @ 2025-01-29 2335/week @ 2025-02-05

10,308 downloads per month
Used in 28 crates (15 directly)

MIT license

195KB
5.5K SLoC

hex-simd

Crates.io Docs MIT licensed

SIMD-accelerated hex encoding and decoding.

Documentation: https://docs.rs/hex-simd

Repository: https://github.com/Nugine/simd


lib.rs:

SIMD-accelerated hex encoding and decoding.

Examples

use hex_simd::AsciiCase;

let bytes = b"Hello world!";

let encoded = hex_simd::encode_to_string(bytes, AsciiCase::Lower);
assert_eq!(encoded, "48656c6c6f20776f726c6421");

let decoded = hex_simd::decode_to_vec(encoded).unwrap();
assert_eq!(decoded, bytes);

Dependencies