#base58 #compile-time

five8_const

Compile-time base58 decoding

6 releases (1 stable)

1.0.0 Jul 12, 2025
0.1.4 Mar 19, 2025
0.1.3 Jul 30, 2024

#592 in Encoding

Download history 89636/week @ 2025-07-30 92185/week @ 2025-08-06 84301/week @ 2025-08-13 87205/week @ 2025-08-20 82156/week @ 2025-08-27 77217/week @ 2025-09-03 86356/week @ 2025-09-10 73918/week @ 2025-09-17 80962/week @ 2025-09-24 72992/week @ 2025-10-01 88495/week @ 2025-10-08 91879/week @ 2025-10-15 103374/week @ 2025-10-22 86307/week @ 2025-10-29 85053/week @ 2025-11-05 75521/week @ 2025-11-12

372,235 downloads per month
Used in 1,549 crates (17 directly)

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