aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorHadrien Dorio <hadrien.dorio@gmail.com>2022-01-09 02:12:00 +0100
committerHadrien Dorio <hadrien.dorio@gmail.com>2022-01-23 19:30:06 +0100
commit490f067de82c8fd53029ddde0c73a242f4c04758 (patch)
tree4edb14646e6cfecc2f79a336bc764593fdd8c164 /build.zig
parentdba04a272aba81f3be4d3419f1392e2c5a7e5dfb (diff)
downloadzig-490f067de82c8fd53029ddde0c73a242f4c04758.tar.gz
zig-490f067de82c8fd53029ddde0c73a242f4c04758.zip
compress: add a deflate compressor
Replaces the inflate API from `inflateStream(reader: anytype, window_slice: []u8)` to `decompressor(allocator: mem.Allocator, reader: anytype, dictionary: ?[]const u8)` and `compressor(allocator: mem.Allocator, writer: anytype, options: CompressorOptions)`
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig17
1 files changed, 15 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index a114609628..31be5b9dd3 100644
--- a/build.zig
+++ b/build.zig
@@ -93,12 +93,25 @@ pub fn build(b: *Builder) !void {
.install_dir = .lib,
.install_subdir = "zig",
.exclude_extensions = &[_][]const u8{
- "README.md",
+ // exclude files from lib/std/compress/
+ ".gz",
".z.0",
".z.9",
- ".gz",
"rfc1951.txt",
+ "rfc1952.txt",
+ // exclude files from lib/std/compress/deflate/testdata
+ ".expect",
+ ".expect-noinput",
+ ".golden",
+ ".input",
+ "compress-e.txt",
+ "compress-gettysburg.txt",
+ "compress-pi.txt",
+ "rfc1951.txt",
+ // exclude files from lib/std/tz/
".tzif",
+ // others
+ "README.md",
},
.blank_extensions = &[_][]const u8{
"test.zig",