This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-gzip v0.1.0
mojo-gzip v0.1.0
Released: 2026-10-21 · Commit: the one tagged v0.1.0 · Previous: first release
What it does
gzip, zlib and raw deflate for Mojo, streaming or in memory, plus crc32 and adler32, through the system libz.
Highlights
- No linker flag: libz.so.1 is loaded at run time, so
mojo runworks. - Streaming 50 MB of output peaks at 12 MB RSS.
- Truncated, corrupt and multi-member files behave as Python's gzip does.
Changes
First public release, no earlier version.
Verified
| Check | Result |
|---|---|
scripts/check.sh: 43 results vs Python gzip/zlib, 60 round trips, streaming RSS |
PASS all |
scripts/selfcheck.sh: 4 mutants |
all rejected |
Known limits
- Linux, needs libz.so.1.
- 4 GiB per in-memory call;
GzFilestreams any size. GzFileignores bytes after the last member (like zcat);decompressraises on them.
Commits
v0.1.0first public release (one commit)
Upgrade / run
mojo run -I src app.mojo