base16
base16 (hex) encoding and decoding
0.2.1
14M downloads/mo
#2552 most downloaded on crates.io
thomcc/rust-base16
What this package is like to depend on
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
8 years old
5 releases · first in 2018
0 releases in the last 12 months
see the full history below
Release timeline
5 releases · May 2018 to Jul 2019Releases
latest 5-
0.2.108 Jul 2019Release notes
Open source →- Make code more bulletproof in the case of panics when using the
decode_buforencode_config_buffunctions. - Additionally, several functions that previously used unsafe internally now either use less unsafe, or are entirely safe.
Release notes
Open source →-
Make code more bulletproof in the case of panics when using the
decode_buforencode_config_buffunctions.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.
- Make code more bulletproof in the case of panics when using the
-
0.2.007 Jul 2019Release notes
Open source →encode_bytenow returns[u8; 2]instead of(u8, u8), as in practice this tends to be more convenient.- The use of
stdwhich requires thealloctrait has been split into theallocfeature. base16has been relicensed as CC0-1.0 from dual MIT/Apache-2.0.
Release notes
Open source →-
encode_bytenow returns[u8; 2]instead of(u8, u8), as in practice this tends to be more convenient. -
The use of
stdwhich requires thealloctrait has been split into theallocfeature. -
base16has been relicensed as CC0-1.0 from dual MIT/Apache-2.0.
-
0.1.211 Apr 2019Nothing published for this version
-
0.1.102 May 2018Nothing published for this version
-
0.1.002 May 2018Nothing published for this version