4 releases

0.1.3 Jul 30, 2024
0.1.2 Jul 29, 2024
0.1.1 Jul 29, 2024
0.1.0 Jul 29, 2024

#515 in Encoding

Download history 14155/week @ 2024-10-14 14923/week @ 2024-10-21 19808/week @ 2024-10-28 21705/week @ 2024-11-04 23696/week @ 2024-11-11 21392/week @ 2024-11-18 20700/week @ 2024-11-25 34829/week @ 2024-12-02 28008/week @ 2024-12-09 21891/week @ 2024-12-16 11291/week @ 2024-12-23 17147/week @ 2024-12-30 32223/week @ 2025-01-06 36652/week @ 2025-01-13 35176/week @ 2025-01-20 34499/week @ 2025-01-27

140,128 downloads per month
Used in 432 crates (8 directly)

MIT license

18KB
371 lines

five8_const

This crate provides compile-time base58 decoding.

It exposes four functions:

  • try_decode_32_const
  • try_decode_64_const
  • decode_32_const
  • decode_64_const

While the first two functions return Result types, the latter two are more useful for declaring constants:

const EXAMPLE: [u8; 32] = five8_const::decode_32_const("JEKNVnkbo3jma5nREBBJCDoXFVeKkD56V3xKrvRmWxFF");

If you want to do base58 encoding or decoding at runtime, just use the five8 crate. It's faster.

Dependencies