Skip to content

Update to Zig 0.16#12

Open
quartz55 wants to merge 1 commit intomxpv:mainfrom
quartz55:0.16
Open

Update to Zig 0.16#12
quartz55 wants to merge 1 commit intomxpv:mainfrom
quartz55:0.16

Conversation

@quartz55
Copy link
Copy Markdown

I've had to do a couple of small fixes when updating a personal project to 0.16 in preparation for the upcoming release.
Decided I might as well create a PR for it in case it's of any interest 😃

Changes

  • build.zig: link_libcpp and linkLibrary moved to module-level
  • src/Lua.zig: Replaced std.io.FixedBufferStream with std.Io.Writer/std.Io.Reader, updated Buffer.stream() to separate writer()/reader() methods
  • src/tests.zig: Updated tests for std.Io compatibility

The std.io.FixedBufferStream change is where there might be some contention on how it looks user-side, I decided to just go with the std's pattern in std.Io.File of using a Writer and Reader with direct manipulation of the indices.

@mxpv
Copy link
Copy Markdown
Owner

mxpv commented Apr 13, 2026

Probably need to bump zig on CI as well:

zig-version: ['0.15.1']

- build.zig: moved link_libcpp to module creation and linkLibrary to
module-level calls + std.Io related changes
- std.Io: replaced std.io.FixedBufferStream with std.Io.Writer/Reader,
  updated Buffer.stream() to separate writer()/reader() methods
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