zlib

1.3.1

spiffy yet delicately unobtrusive compression for swift.
the-swift-collective/zlib

What's New

v1.3.1

2024-10-27T02:45:03Z
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"),
    ]
  ),
]

ZLib

Cross platform swift package for the zlib library.

Usage

To use zlib in swift, add zlib as a package dependency in your project's Package.swift file.
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, a complete example.
// swift-tools-version: 5.8
import PackageDescription

let package = Package(
  name: "MyPackage",
  products: [
    .library(
      name: "MyLibrary",
      targets: ["MyLibrary"]
    ),
  ],
  dependencies: [
    .package(url: "https://github.com/the-swift-collective/zlib.git", from: "1.3.1")
  ],
  targets: [
    .target(
      name: "MyLibrary",
      dependencies: [
        /* add the zlib product as a library dependency. */
        .product(name: "ZLib", package: "zlib"),
      ]
    ),
  ]
)


the swift collective - cross platform swift packages.
zlib is licensed under the terms of the zlib license.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu May 22 2025 18:30:55 GMT-0900 (Hawaii-Aleutian Daylight Time)