#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

#110 in Parser implementations

Download history 437926/week @ 2024-07-22 441241/week @ 2024-07-29 432936/week @ 2024-08-05 442007/week @ 2024-08-12 488420/week @ 2024-08-19 464617/week @ 2024-08-26 431537/week @ 2024-09-02 463560/week @ 2024-09-09 419483/week @ 2024-09-16 487597/week @ 2024-09-23 414618/week @ 2024-09-30 377504/week @ 2024-10-07 405524/week @ 2024-10-14 394058/week @ 2024-10-21 375493/week @ 2024-10-28 376127/week @ 2024-11-04

1,567,367 downloads per month
Used in 1,169 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