All notable changes to this project will be documented in this file. The project adheres to Semantic Versioning.
- Add
decode!
macro that allows to skip specifying output length. - Make panic messages more informative by including context information.
- Bump MSRV to 1.67.
- Add
Decoder::custom()
as a shortcut forDecoder::Custom(Encoding::new(alphabet))
.
- Bump MSRV to 1.57, switch to 2021 edition and remove the
nightly
feature as obsolete.
- Support URL-safe variant of base64 encoding.
- Support base-(2,4,8,16,32,64) encodings with custom alphabets.
- Add
nightly
feature (requires a nightly Rust toolchain) for improved panic messages.
- Rename
SkipWhitespace::parse()
andPem::parse()
methods todecode()
for uniformity withDecoder::decode
. - Mark
Decoder
enum as non-exhaustive.
- Check final decoder state, preventing error such as an odd number of hex digits or invalid terminal base64 char.
The initial release of const-decoder
.