NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2624 most downloaded on crates.io
base16 (hex) encoding and decoding
Latest stable
0.2.1
Last release 7 years ago
no release in 18 months
Ships fairly regularly
a new release about every 7 months
Some releases are documented
notes for 2 of 5 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
5 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Make code more bulletproof in the case of panics when using the decode_buf or encode_config_buf functions.
decode_buf or encode_config_buf functions.Make code more bulletproof in the case of panics when using the decode_buf
or encode_config_buf functions.
Previously, if the innermost encode/decode function paniced, code that inspected the contents of the Vec (either in a Drop implementation, or by catching the panic) could read from uninitialized memory.
However, I don't believe it is possible for the innermost encode/decode functions to panic, so I don't think there was any risk in previous versions.
I don't believe the panic is possible because only two panics exist in the generated assembly (both only in debug configuration, and not in release). The two panics are respectively:
a debug_assert verifying the caller performed a check (which it does).
a usize overflow check on an index variable, which is impossible as we've already tested for that.
That said, this is some powerful rationalization, so I'm cutting a new version with this fix anyway.
Additionally, several functions that previously used unsafe internally now either use less unsafe, or are entirely safe.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
encode_byte now returns [u8; 2] instead of (u8, u8), as in practice this tends to be more convenient.
encode_byte now returns [u8; 2] instead of (u8, u8), as in practice this tends to be more convenient.std which requires the alloc trait has been split into the alloc feature.base16 has been relicensed as CC0-1.0 from dual MIT/Apache-2.0.Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.