Skip to content

Zig 0.15 compatibility#7

Merged
navidys merged 1 commit into
navidys:mainfrom
ananthb:zig-0.15-compat
Mar 27, 2026
Merged

Zig 0.15 compatibility#7
navidys merged 1 commit into
navidys:mainfrom
ananthb:zig-0.15-compat

Conversation

@ananthb

@ananthb ananthb commented Mar 27, 2026

Copy link
Copy Markdown
Contributor
  • utils.zig: std.json.stringifyAlloc to std.json.Stringify.valueAlloc
  • runtime/define.zig: std.ArrayList(T).init(alloc) to std.ArrayListUnmanaged(T) with explicit allocator on append/toOwnedSlice
  • build.zig: remove addStaticLibrary (removed in 0.15), use createModule for examples and tests
  • examples: std.io.getStdOut() to std.fs.File.stdout().deprecatedWriter()
  • tests: ArrayList(u8).init to ArrayListUnmanaged pattern, .writer(allocator), .deinit(allocator)

@navidys

navidys commented Mar 27, 2026

Copy link
Copy Markdown
Owner

Hi @ananthb
Thanks for the PR.

The build and unit test pipeline tasks are faling.

@ananthb

ananthb commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

Whoops. I haven't updated CI to build with zig 0.15. Let me fix that real quick.

- utils.zig: std.json.stringifyAlloc -> std.json.Stringify.valueAlloc
- runtime/define.zig: std.ArrayList(T).init(alloc) -> std.ArrayListUnmanaged(T)
  with explicit allocator on append/toOwnedSlice
- build.zig: replace addStaticLibrary with addObject for docs, use
  createModule for examples and tests, restore kcov coverage step
- examples: use std.fs.File.stdout().writer() (non-deprecated API)
- tests: ArrayList(u8) -> ArrayListUnmanaged pattern with explicit allocator
- CI: update to Zig 0.15.2, restore coverage job
@navidys navidys merged commit 9bb3960 into navidys:main Mar 27, 2026
4 checks passed
@ananthb ananthb deleted the zig-0.15-compat branch March 28, 2026 07:38
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.

2 participants