five8_const

Crates.iofive8_const
lib.rsfive8_const
version0.1.3
sourcesrc
created_at2024-07-29 20:13:13.443739
updated_at2024-07-30 13:10:52.398467
descriptionCompile-time base58 decoding.
homepagehttps://github.com/kevinheavey/five8
repositoryhttps://github.com/kevinheavey/five8
max_upload_size
id1319176
size10,478
Kevin Heavey (kevinheavey)

documentation

README

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.

Commit count: 133

cargo fmt