#binary-data #data-encoding #codec #encode #utf-8 #decode #bubblebabble

no-std boba

Encoder and decoder for the Bubble Babble binary data encoding

10 stable releases (4 major)

6.0.0 Feb 2, 2025
5.0.0 Aug 8, 2022
4.3.1 Mar 30, 2022
4.2.0 Jan 6, 2021
0.0.0 Mar 23, 2020

#1143 in Encoding

Download history 1/week @ 2024-10-29 4/week @ 2024-11-05 1/week @ 2024-12-10 103/week @ 2025-01-28 32/week @ 2025-02-04

135 downloads per month

MIT license

37KB
513 lines

boba

GitHub Actions Code Coverage Discord Twitter
Crate API API trunk

Implements the the Bubble Babble binary data encoding.

The Bubble Babble Encoding encodes arbitrary binary data into pseudowords that are more natural to humans and that can be pronounced relatively easily.

Bubble Babble encodes 6 characters in 16 bits and includes a checksum embedded in the encoded data. See the Bubble Babble spec.

Usage

Add this to your Cargo.toml:

[dependencies]
boba = "6.0.0"

Then encode and decode data like:

assert_eq!(boba::encode("Pineapple"), "xigak-nyryk-humil-bosek-sonax");
assert_eq!(boba::decode(b"xexax"), Ok(vec![]));

Crate Features

Boba is no_std compatible with a required dependency on the alloc crate.

boba is fuzzed with cargo-fuzz.

Minimum Rust Version Policy

This crate's minimum supported rustc version (MSRV) is 1.83.0.

MSRV may be bumped in minor version releases.

License

boba is licensed under the MIT License (c) Ryan Lopopolo.

No runtime deps