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

#1501 in Parser implementations

Download history 2925/week @ 2024-08-28 2583/week @ 2024-09-04 1838/week @ 2024-09-11 1873/week @ 2024-09-18 2230/week @ 2024-09-25 2170/week @ 2024-10-02 2530/week @ 2024-10-09 3039/week @ 2024-10-16 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 1895/week @ 2024-12-11

9,485 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