Skip to content

Commit 2e2c31a

Browse files
committed
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, level: Compression, dictionary: ?[]const u8)`
1 parent 396a1c7 commit 2e2c31a

File tree

73 files changed

+7424
-754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+7424
-754
lines changed

build.zig

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,21 @@ pub fn build(b: *Builder) !void {
9393
.install_dir = .lib,
9494
.install_subdir = "zig",
9595
.exclude_extensions = &[_][]const u8{
96-
"README.md",
96+
".expect",
97+
".expect-noinput",
98+
".golden",
99+
".gz",
100+
".in",
101+
".tzif",
97102
".z.0",
98103
".z.9",
99-
".gz",
104+
"README.md",
105+
"compress-e.txt",
106+
"compress-gettysburg.txt",
107+
"compress-pi.txt",
108+
"rfc1950.txt",
100109
"rfc1951.txt",
101-
".tzif",
110+
"rfc1952.txt",
102111
},
103112
.blank_extensions = &[_][]const u8{
104113
"test.zig",

lib/std/compress.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pub const gzip = @import("compress/gzip.zig");
55
pub const zlib = @import("compress/zlib.zig");
66

77
test {
8+
_ = deflate;
89
_ = gzip;
910
_ = zlib;
1011
}

0 commit comments

Comments
 (0)