Skip to content

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

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)#5
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

- addCSourceFiles/addIncludePath/addConfigHeader moved from Compile to Module
- ConfigHeader.getOutput() → getOutputFile()
- std.ArrayList: .init(alloc) → .empty + explicit allocator
- std.fs.cwd() → std.Io.Dir.cwd()
- dir.openDir/openFile/close now take io parameter
- Iterator.next() now takes io parameter
- file.readToEndAlloc() → dir.readFileAlloc(io, name, alloc, .unlimited)

🤖 Generated with AI assistance
The codebase uses Zig 0.16.0-dev (master) APIs:
- std.ArrayList.empty (no allocator init)
- std.testing.io / std.Io.Dir
- ConfigHeader.getOutputFile()

CI was pinned to 0.14.1 which lacks these APIs. Update to master.
Also drop minimum_zig_version since we target nightly.

🤖 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