04 / Library and CLI design
ubase64
A compact Rust Base64 library and CLI that keeps common operations simple without giving up configurable encoding behavior.
Problem
Make the common case feel like the common case
The widely used base64 crate is flexible, but straightforward one-shot operations begin with engine selection and configuration. ubase64 puts an ergonomic interface in front of those frequent tasks.
The project keeps configurable encoding behavior available while exposing the same implementation as both a library and a small command-line tool.
Engineering decisions
Make the important constraints explicit
Lead with a human-friendly API
Common encode and decode operations stay direct, reducing setup and making intent obvious at the call site.
Preserve configuration
Callers can still choose encoding behavior when the defaults are not appropriate, keeping convenience from becoming a constraint.
Move lookup work to compile time
A compile-time reverse lookup table keeps decoding logic compact and avoids building that structure at runtime.
Offer library and CLI surfaces
The same core behavior works inside Rust applications and from a shell, covering both embedded and ad hoc workflows.
Evidence
Proof at a glance
crates.io downloads
Library / CLI
Reverse decode table
Published alpha