| Crates.io | five8_const |
| lib.rs | five8_const |
| version | 1.0.0 |
| created_at | 2024-07-29 20:13:13.443739+00 |
| updated_at | 2025-07-12 06:45:40.679378+00 |
| description | Compile-time base58 decoding. |
| homepage | https://github.com/kevinheavey/five8 |
| repository | https://github.com/kevinheavey/five8 |
| max_upload_size | |
| id | 1319176 |
| size | 11,031 |
This crate provides compile-time base58 decoding.
It exposes four functions:
try_decode_32_consttry_decode_64_constdecode_32_constdecode_64_constWhile 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.