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

#1715 in Parser implementations

Download history 1405/week @ 2024-02-26 2159/week @ 2024-03-04 2239/week @ 2024-03-11 2169/week @ 2024-03-18 1852/week @ 2024-03-25 2499/week @ 2024-04-01 2682/week @ 2024-04-08 2750/week @ 2024-04-15 2805/week @ 2024-04-22 2417/week @ 2024-04-29 2568/week @ 2024-05-06 2701/week @ 2024-05-13 2489/week @ 2024-05-20 2130/week @ 2024-05-27 3362/week @ 2024-06-03 2504/week @ 2024-06-10

10,592 downloads per month
Used in 21 crates (12 directly)

MIT license

200KB
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