base45/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2//! Encoder/decoder for base45 that is fully compatible with
3//! [`draft-faltstrom-base45-07.txt`](https://www.ietf.org/archive/id/draft-faltstrom-base45-07.txt)
4//!
5//! ```rust,no_run
6//! # fn main() {
7//! let encoded = base45::encode("Hello!!");
8//! # }
9//! ```
10//!
11//! Features:
12//!
13//! - `array_chunks`, which is using experimental array and const-generic features. For information & tracking, see
14//! [rust/rust#74985](https://github.com/rust-lang/rust/issues/74985). If not enabled, this uses
15//! [`core::slice::ChunksExact`](https://doc.rust-lang.org/core/slice/struct.ChunksExact.html).
16//! Ideally, there is no performance penalty using this means.
17
18#[cfg(not(feature = "std"))]
19extern crate alloc;
20
21pub mod alphabet;
22mod decode;
23mod encode;
24
25pub use decode::*;
26pub use encode::*;
27
28#[cfg(test)]
29mod tests;