To use this release of zlib in your own swift project, add zlib as a package dependency in your project's Package.swift
file.
// swift-tools-version: 5.8
dependencies: [
.package(url: "https://github.com/the-swift-collective/zlib.git", from: "1.3.1"),
]
Then, for any target you'd like, add the zlib product as a target dependency.
targets: [
.target(
name: "MyLibrary",
dependencies: [
/* add the zlib product as a library dependency. */
.product(name: "ZLib", package: "zlib"),
]
),
]