zlib-ng_d 2.3.1

Provides D bindings and a library to link against for zlib-ng.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

zlib-ng_d

zlib-ng is a fork of zlib which has improved performance. zlib-ng_d is simply a D wrapper to be able to link against zlib-ng.

zlib-ng_d uses importC to provide D bindings via

import zlib_ng;

On POSIX systems, building zlib-ng_d builds zlib-ng (the source code is part of this repo), and it provides a static library for your program or library to link against.

For Windows, zlib-ng_d provides pre-built libraries. The library is unfortunately dynamic rather than static (to avoid problems with mismatched CRTs), so zlib-ng2.dll needs to be included with your executable. dub should copy it to your dub project, but obviously, you'll need to make sure that the dll stays with your executable when you distribute it.

zlib-ng has both a zlib compatibility API and its own API. The compatibility API is used when you want to just replace silently zlib with zlib-ng, but that tends to cause linker problems, because the symbols conflict (and Phobos includes a copy of zlib, which makes it problematic to try to use the compatibility API for zlib-ng). So, zlib-ng_d provides a build of zlib-ng which does not include the compatibility API.

zlib-ng.h contains both the symbol declarations for the API and the documentation for how to use it (which is basically the same as the standard zlib API except that the symbol names have been tweaked and start with zng_).

Note that zlib-ng_d's major and minor version numbers should match up with zlib-ng's major and minor version numbers, but the patch numbers won't necessarily match, since there really isn't a good way to ensure that they do given that semantic versioning doesn't have a fourth number, and zlib-ng_d may need to provide updates to fix something separately from updating the version of zlib-ng.

Authors:
  • Jonathan M Davis
Dependencies:
none
Versions:
2.3.1 2026-Jun-05
2.3.0 2026-Jun-03
~master 2026-Jun-05
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 5 downloads this week

  • 5 downloads this month

  • 5 downloads total

Score:
0.1
Short URL:
zlib-ng_d.dub.pm