bin-encode-decode
Custom-Alphabet Binary Encoding & Decoding
Workspace Overview · API Docs · Agent Engineering Rules
Overview
High-performance binary encoder and decoder supporting arbitrary custom character sets beyond standard Base64.
This package is part of the ctares unified Rust 2024 workspace and follows the repository's strict module purity, formatting, and dependency-ordered release standards.
Responsibilities & Module Layout
common— Alphabet validation, lookup tables, and error typesencode— Deterministic binary-to-text encoding over user-supplied alphabetsdecode— Strict character validation and binary reconstruction
Installation & Quick Start
use *;
let charset: &str = "0123456789abcdef";
let encoded: String = encode.unwrap;
let decoded: = decode.unwrap;
assert_eq!;
Verification
Run crate-scoped formatting, lint, and test checks from the workspace root:
Documentation & Governance
- Update this
README.mdalongside any public API, CLI flag, or module-boundary change per../AGENTS.md. - Project-level standards and release workflows live in
../.agents/skills/ctares/SKILL.md.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.