pfalcon / uzlib

Radically unbloated DEFLATE/zlib/gzip compression/decompression library. Can decompress any gzip/zlib data, and offers simplified compressor which produces gzip-compatible output, while requiring much less resources (and providing less compression ratio of course).
Other
306 stars 83 forks source link

Feature Request: single-file-header? #51

Open cnlohr opened 3 months ago

cnlohr commented 3 months ago

Would you consider making a portable single-file-header, i.e. header-only with #define UZLIB_IMPLEMENTATION? So that one could implement this in their own projects without making a more sophisticated build system?

pfalcon commented 3 months ago

Well, I don't much time to work on the project recently, so wouldn't be able to do that any time soon. I'm also not a fan of amalgamations (unless it's automatically produced from the existing source, so doesn't require manual actions).

cnlohr commented 3 months ago

Is fair, feel free tor close - just as a user, I have basically taken to not using libraries unless they are SFH's now is the only reason I say that. But auto-generated is fine, too.

pfalcon commented 3 months ago

I'm ok to keep open to consider in more detail when time permits.

cnlohr commented 3 months ago

Just hoping to set up shop and live a little rent free in my "single-file-header" house :)

In the mean time I put this together: https://github.com/cnlohr/rtgz-tinf-util - it doesn't do any compression (as the header), but it does help with decompression especially in restrictive systems.