The lib directory contains several files, but depending on target use case, some of them may not be necessary.
To build the zstd library the following files are required:
Stable API is exposed in common/zstd.h. Advanced and experimental API can be enabled by defining ZSTD_STATIC_LINKING_ONLY
. Never use them with a dynamic library, as their definition may change in future versions.
To build a separate zstd compressor all files from common/
and compressor/
directories are required. In a similar way to build a separate zstd decompressor all files from common/
and decompressor/
directories are needed.
This complementary API makes streaming integration easier. It is used by zstd
command line utility, and 7zip plugin :
To create dictionaries from training sets :
The other files are not source code. There are :