data-encoding
data-encoding copied to clipboard
Efficient and customizable data-encoding functions in Rust
Hello, I've just ran [cargo-bloat](https://github.com/RazrFalcon/cargo-bloat) on my [project](https://github.com/Discord-TTS/Bot) as I'm working on reducing compile times and binary sizes can be a proxy for compile times, and found that `data_encoding::Encoding::encode_mut` is...
This crate is currently used by [`uutils/coreutils`](https://github.com/uutils/coreutils) for programs like `basenc`, `base32`, and `base64`, and I'm looking for ways to optimize them. I've experimented with an AVX2 implementation of simple...
This issue lists breaking changes that could be worth doing. Since they would bump the major version, doing as much of them simultaneously would be best. ### `static` instead of...
When operating on fixed length hashes like [SRI](https://en.wikipedia.org/wiki/Subresource_Integrity), it's great to use arrays on stack as buffers. But only constants and const-fns can be used in array length expressions, results...
We currently have custom unsafe functions to split input and output into chunks. Once [`slice_as_chunks`](https://github.com/rust-lang/rust/issues/74985) is stable we can use it.
Required tasks: - [x] Use static dispatch instead of dynamic dispatch - [x] Use `static` instead of `const` for pre-defined encodings - [x] Make `Encoding` implementation private - [x] Add...
Would supporting the variant of base32 that [Nix](https://github.com/NixOS/nix) uses be something you would consider? It is like `LeastSignificantFirst` but reversed: ``` let mut spec = Specification::new(); spec.symbols.push_str("0123456789abcdfghijklmnpqrsvwxyz"); spec.bit_order = BitOrder::LeastSignificantFirst;...