Registry / utility / base-x

base-x

JSON →
library0.2.11rscratesunverified

Encode and decode data in any base (e.g., base58, base62) with a flexible API.

# Cargo.toml [dependencies] base-x = "0.2.11"
INSTALL
IMPORT
SIG · BASE-X
B
base-x
utilityrustv0.2.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

encode
use base_x::encode;

Encode and decode bytes using a custom base alphabet.

use base_x::{encode, decode}; fn main() { let alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; let encoded = encode(alphabet, &[0x00, 0x01, 0x02]); let decoded = decode(alphabet, &encoded).unwrap(); println!("Encoded: {}, Decoded: {:?}", encoded, decoded); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.11latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Meta
1
Resources
base-x — cargo add base-x · libregistry