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

#208 in Encoding

Download history 18718/week @ 2024-10-26 21788/week @ 2024-11-02 23264/week @ 2024-11-09 21994/week @ 2024-11-16 20564/week @ 2024-11-23 32642/week @ 2024-11-30 29377/week @ 2024-12-07 22151/week @ 2024-12-14 11492/week @ 2024-12-21 16416/week @ 2024-12-28 31780/week @ 2025-01-04 34788/week @ 2025-01-11 35465/week @ 2025-01-18 36783/week @ 2025-01-25 49684/week @ 2025-02-01 41761/week @ 2025-02-08

169,705 downloads per month
Used in 472 crates (7 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