Use lz4_flex in no_std environments
mainlz4_flex supports no_std environments, but currently only for the Block Format, as the Frame format requires std::io::Write.
To use it in an environment without an allocator, you must:
- Disable the
allocfeature. - Use the
_intovariants (e.g.,compress_into,decompress_into) which operate on user-provided slices.
In these modes, the compression hash table is either placed on the stack (8-16KB depending on input size) or can be provided by the caller via compress_into_with_table.