Skip to content

Optional flags#393

Merged
kuba-- merged 4 commits intomasterfrom
optional-flags
Mar 27, 2026
Merged

Optional flags#393
kuba-- merged 4 commits intomasterfrom
optional-flags

Conversation

@kuba--
Copy link
Copy Markdown
Owner

@kuba-- kuba-- commented Mar 14, 2026

kuba-- added 3 commits March 27, 2026 12:25
… support

Introduces ZIP_ENABLE_INFLATE, ZIP_ENABLE_DEFLATE, and ZIP_HAVE_SYMLINK
so users can strip unused functionality and reduce binary size on
constrained targets. All flags default to enabled, preserving full
backward compatibility when the source files are simply dropped into a
project without CMake.

Closes #362
Move zip_password_clone outside the ZIP_ENABLE_DEFLATE guard since
it is needed by both read and write paths (password-protected open).

Wrap PKWARE cipher primitives (encrypt, decrypt, key schedule) with
appropriate guards so the library compiles cleanly under all flag
combinations, including the all-disabled case.

Add a compile-flags CI matrix job that builds every combination of
ZIP_ENABLE_INFLATE, ZIP_ENABLE_DEFLATE, and ZIP_HAVE_SYMLINK to
catch guard regressions.
…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@kuba-- kuba-- merged commit 6a528eb into master Mar 27, 2026
30 checks passed
@kuba-- kuba-- deleted the optional-flags branch March 27, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant