no-std hex-simd

SIMD-accelerated hex encoding and decoding

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

#732 in Parser implementations

Download history 2414/week @ 2024-07-19 2406/week @ 2024-07-26 2622/week @ 2024-08-02 2199/week @ 2024-08-09 1883/week @ 2024-08-16 2476/week @ 2024-08-23 2773/week @ 2024-08-30 2414/week @ 2024-09-06 1706/week @ 2024-09-13 2295/week @ 2024-09-20 1904/week @ 2024-09-27 2281/week @ 2024-10-04 2610/week @ 2024-10-11 3027/week @ 2024-10-18 2532/week @ 2024-10-25 2202/week @ 2024-11-01

10,888 downloads per month
Used in 27 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