Sadly is does not work on Windows:
C:\Projekte\sspringer\Zip>swift build -c release
Building for production...
C:\Projekte\sspringer\Zip\Zip\minizip\zip.c:21:10: fatal error: 'zlib.h' file not found
#include <zlib.h>
^~~~~~~~
1 error generated.
[0/3] Compiling Minizip zip.c
Especially when you have to support macOS + Linux + Windows, and you have a problem at hand where non-pure Swift packages are common like in the case of file compression, the Swift Package Index can only be the start of a search, because there is no indication for Windows support in the Swift Package Index, see the other forums topic just started by me.
In the mentioned fork of ZIPFoundationModern, there is a test #if canImport(Compression)
, compiling the C sources of CZLib if it fails, and I see the compilation of e.g. CZLib/compress.c when compiling it on Linux. From that observation I would say the compression framework is not available on Linux.