5 releases

new 0.1.4 Mar 19, 2025
0.1.3 Jul 30, 2024
0.1.2 Jul 29, 2024
0.1.1 Jul 29, 2024
0.1.0 Jul 29, 2024

#310 in Encoding

Download history 28896/week @ 2024-11-29 30934/week @ 2024-12-06 23507/week @ 2024-12-13 12678/week @ 2024-12-20 14047/week @ 2024-12-27 28041/week @ 2025-01-03 36753/week @ 2025-01-10 34712/week @ 2025-01-17 36363/week @ 2025-01-24 49056/week @ 2025-01-31 42092/week @ 2025-02-07 36859/week @ 2025-02-14 36963/week @ 2025-02-21 42950/week @ 2025-02-28 48816/week @ 2025-03-07 42288/week @ 2025-03-14

176,785 downloads per month
Used in 652 crates (7 directly)

MIT license

18KB
373 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