Skip to content

v0.5.0

Choose a tag to compare

@52 52 released this 25 Apr 08:09
· 35 commits to master since this release
eddf7c3

Changes

  • feat: migrate to workspace by @52 in #19

Full Changelog: v0.4.0...v0.5.0

Features

The new Buffer type can be used to encode and decode Crockford Base32 in constant contexts:

use c32::Buffer;

const INPUT: [u8; 3] = [42, 42, 42];
const ENCODED: Buffer<5> = Buffer::encode(&INPUT);
assert_eq!(ENCODED.as_str(), "2MAHA");

const DECODED: Buffer<5> = Buffer::decode(b"2MAHA");
assert_eq!(DECODED.as_bytes(), [42, 42, 42]);