Skip to content

chore: support Zig 0.17.1 - #7

Draft
GrapeBaBa wants to merge 3 commits into
mainfrom
grapebaba/zig-0.17.1
Draft

GrapeBaBa wants to merge 3 commits into
mainfrom
grapebaba/zig-0.17.1

Conversation

@GrapeBaBa

@GrapeBaBa GrapeBaBa commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Translate snappy-c.h in the build graph, including the generated configuration header.
  • Use Zig 0.17 CRC-32/ISCSI and enum builtins; @fromBackingInt takes the chunk type byte directly, since ChunkType is enum(u8).
  • Pin the compiler requirement and CI to exactly Zig 0.17.1.

Validation

Tested on aarch64 macOS with Zig 0.17.1.

  • zig fmt --check on tracked Zig/ZON files.
  • zig build test --summary all: 6 tests passed, also with -Doptimize=fast.
  • Existing raw/framed roundtrips, malformed-data coverage and the independent masked-CRC known-answer test pass.

AI assistance

This PR was written primarily by Hermes Agent (Nous Research) and Claude Code. Maintainer review is still required.

slice[0] is already u8, the backing type of ChunkType, so @fromBackingInt takes it directly.
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