#base64 #codec #simd #simd-accelerated #decoding

no-std base64-simd

SIMD-accelerated base64 encoding and decoding

6 releases (3 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.5.0 Dec 31, 2021

#113 in Parser implementations

Download history 437890/week @ 2024-08-06 446488/week @ 2024-08-13 479628/week @ 2024-08-20 434548/week @ 2024-08-27 470600/week @ 2024-09-03 449995/week @ 2024-09-10 434997/week @ 2024-09-17 486785/week @ 2024-09-24 392954/week @ 2024-10-01 375017/week @ 2024-10-08 411130/week @ 2024-10-15 390662/week @ 2024-10-22 378405/week @ 2024-10-29 373220/week @ 2024-11-05 406139/week @ 2024-11-12 344383/week @ 2024-11-19

1,568,568 downloads per month
Used in 1,205 crates (29 directly)

MIT license

220KB
6.5K SLoC

base64-simd

Crates.io Docs MIT licensed

SIMD-accelerated base64 encoding and decoding.

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

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


lib.rs:

SIMD-accelerated base64 encoding and decoding.

Examples

let bytes = b"hello world";
let base64 = base64_simd::STANDARD;

let encoded = base64.encode_to_string(bytes);
assert_eq!(encoded, "aGVsbG8gd29ybGQ=");

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

Dependencies