#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

#1858 in Encoding

Download history 103488/week @ 2026-01-25 123094/week @ 2026-02-01 114598/week @ 2026-02-08 113088/week @ 2026-02-15 127090/week @ 2026-02-22 130357/week @ 2026-03-01 172110/week @ 2026-03-08 150846/week @ 2026-03-15 162165/week @ 2026-03-22 151636/week @ 2026-03-29 163340/week @ 2026-04-05 167850/week @ 2026-04-12 162731/week @ 2026-04-19 150326/week @ 2026-04-26 182034/week @ 2026-05-03 212104/week @ 2026-05-10

717,496 downloads per month
Used in 2,098 crates (20 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