mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-22 04:30:42 +00:00
### Motivation: Relying on the system zlib causes issues if that library (or its headers) doesn't ship with the system. ### Modifications: Vendor it. ### Result: - Fewer dependencies. - Binary size increase negligible. The _sum of the debug builds_ of all `.o` files is less than 200kB. A linked release build will make this even smaller: ``` $ du -k .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/*.o 12 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/adler32.c.o 12 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/crc32.c.o 60 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/deflate.c.o 16 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/inffast.c.o 40 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/inflate.c.o 16 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/inftrees.c.o 40 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/trees.c.o 8 .build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/zutil.c.o ``` Co-authored-by: Johannes Weiss <johannes@jweiss.io>
46 lines
798 B
Plaintext
46 lines
798 B
Plaintext
.gitignore
|
|
**/.gitignore
|
|
.licenseignore
|
|
.unacceptablelanguageignore
|
|
.gitattributes
|
|
.git-blame-ignore-revs
|
|
.mailfilter
|
|
.mailmap
|
|
.spi.yml
|
|
.swift-format
|
|
.editorconfig
|
|
.github/*
|
|
*.md
|
|
*.txt
|
|
*.yml
|
|
*.yaml
|
|
*.json
|
|
Package.swift
|
|
**/Package.swift
|
|
Package@-*.swift
|
|
**/Package@-*.swift
|
|
Package.resolved
|
|
**/Package.resolved
|
|
Makefile
|
|
*.modulemap
|
|
**/*.modulemap
|
|
**/*.docc/*
|
|
*.xcprivacy
|
|
**/*.xcprivacy
|
|
*.symlink
|
|
**/*.symlink
|
|
Dockerfile
|
|
**/Dockerfile
|
|
Snippets/*
|
|
dev/alloc-limits-from-test-output
|
|
dev/boxed-existentials.d
|
|
dev/git.commit.template
|
|
dev/lldb-smoker
|
|
dev/make-single-file-spm
|
|
dev/malloc-aggregation.d
|
|
dev/update-alloc-limits-to-last-completed-ci-build
|
|
Sources/CNIOExtrasZlib/vendored-zlib.version
|
|
Sources/CNIOExtrasZlib/*.c
|
|
Sources/CNIOExtrasZlib/nioextras-*.h
|
|
Sources/CNIOExtrasZlib/include/nioextras-*.h
|