Skip to content

chore: upgrade to Zig 0.16.0-dev (master)#10

Draft
lodekeeper-z wants to merge 2 commits intoChainSafe:mainfrom
lodekeeper-z:chore/zig-master
Draft

chore: upgrade to Zig 0.16.0-dev (master)#10
lodekeeper-z wants to merge 2 commits intoChainSafe:mainfrom
lodekeeper-z:chore/zig-master

Conversation

@lodekeeper-z
Copy link
Copy Markdown

Upgrade to Zig 0.16.0-dev (master) — part of the lodestar-z Zig master upgrade effort.

Key changes:

  • std.iostd.Io migration
  • std.Io.Dir methods now require explicit io parameter
  • Build system changes for 0.16 compatibility

🤖 Generated with AI assistance

- std.ArrayList is now unmanaged by default; use .empty + explicit allocator
- addCSourceFiles/addIncludePath moved from Compile to Module (lib.root_module)
- Add zig-pkg/ to .gitignore (new local dep storage in 0.16)

🤖 Generated with AI assistance
1. build.zig: Use ArrayListUnmanaged instead of ArrayList - the managed
   ArrayList no longer has .empty in Zig 0.16.

2. build.zig.zon: Point to lodekeeper-z/hashtree fork which fixes macOS
   ARM64 assembly syntax. The upstream assembly files incorrectly mixed
   ELF (#:lo12:) and Mach-O (@PAGEOFF) relocation syntax, which newer
   clang (in Zig 0.16) rejects.

🤖 Generated with AI assistance
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