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

#1010 in Encoding

Download history 246/week @ 2024-07-28 242/week @ 2024-08-04 1/week @ 2024-08-11 60/week @ 2024-09-01 68/week @ 2024-09-08 36/week @ 2024-09-15

164 downloads per month
Used in five8

MIT license

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