Skip to content

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

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

chore: upgrade to Zig 0.16.0-dev (master)#9
lodekeeper-z wants to merge 5 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

- Remove usingnamespace (removed in 0.15): c.zig now exports cImport as .c field
- All imports updated: @import("c.zig") → @import("c.zig").c
- callconv(.C) → callconv(.c) (lowercase)
- napi module requires link_libc = true for @cImport
- Example disabled (TODO: std.time.Timer/sleep moved to std.Io)

🤖 Generated with AI assistance
@wemeetagain wemeetagain marked this pull request as ready for review March 19, 2026 19:59
@wemeetagain wemeetagain marked this pull request as draft March 19, 2026 19:59
@wemeetagain
Copy link
Copy Markdown
Member

@lodekeeper-z please refresh this PR based on the latest main branch

…r callbacks)

Updates examples to match new wrap() signature from ChainSafe#10 (added ref parameter).

🤖 Generated with AI assistance
@lodekeeper-z
Copy link
Copy Markdown
Author

Refreshed against latest main — merged in #10 (Ref refactor), #8 (raw variant functions), and #5 (safer callbacks). Updated the type_tag and hello_world examples to match the new wrap() signature (added ref parameter).

Note: the type_tag example has a linker issue (undefined NAPI symbols) that's pre-existing from upstream — it was introduced when #7 and #10 were merged without updating the example's wrap() call site. Our branch now fixes that compilation error, but the example still can't link standalone (needs to run as a Node addon).

@nazarhussain
Copy link
Copy Markdown
Contributor

@lodekeeper-z please refresh this PR based on the latest main branch

@lodekeeper-z
Copy link
Copy Markdown
Author

Refreshed — merged latest main (napi→zapi rename, CI workflows, type_tag example). hello_world example is still TODO due to std.time.Timer/std.Io migration in 0.16.

1 similar comment
@lodekeeper-z
Copy link
Copy Markdown
Author

Refreshed — merged latest main (napi→zapi rename, CI workflows, type_tag example). hello_world example is still TODO due to std.time.Timer/std.Io migration in 0.16.

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.

3 participants