fashex - fast hexadecimal string formatting
Features
- Precise public APIs (
encodeordecode). - Best-effort SIMD acceleration.
- APIs that works in const contexts.
- Unlike crates
const-hex,faster-hex, etc., this crate does not require initialization of the output buffer.
Disclaimer
Although all tests are passing and hours of fuzzing show no failures, latent bugs may still exist in the code.
- The SIMD-accelerated code paths for
x86/x86_64architecture are well tested and fuzzed. - The SIMD-accelerated code paths for
aarch64architecture are tested and fuzzed. - The SIMD-accelerated code paths for
loongarch64architecture have not been tested or fuzzed on real hardware.
If you find any bugs, please report them.
Acknowledgements
This crate is highly inspired by the following repositories:
const-hex, SPDX-License-Identifier: MIT OR Apache-2.0faster-hex, SPDX-License-Identifier: MIT OR Apache-2.0hex-simd, SPDX-License-Identifier: MIT