std/zstd

Zstandard (RFC 8878), through the reference library, libzstd.

Function Result
zstd_compress(data, level) data at level 1 (fastest) to 22 (smallest), 3 by default; below 1 is faster still
zstd_decompress(data, limit) what all its frames decompress to, or an ERROR of kind "invalid_data"

std/brotli and std/zstd are modules of their own so that a program links with each library only when it uses it. Their development files are libbrotli-dev and libzstd-dev on Debian and Ubuntu, brotli and zstd from Homebrew, and mingw-w64-x86_64-brotli and mingw-w64-x86_64-zstd in MSYS2.