Skip to content

Update to Zig 0.16#12

Merged
mxpv merged 1 commit into
mxpv:mainfrom
quartz55:0.16
Apr 14, 2026
Merged

Update to Zig 0.16#12
mxpv merged 1 commit into
mxpv:mainfrom
quartz55:0.16

Conversation

@quartz55
Copy link
Copy Markdown
Contributor

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
@quartz55
Copy link
Copy Markdown
Contributor Author

Probably need to bump zig on CI as well:

zig-version: ['0.15.1']

Thanks for the heads up, did the necessary changes for this. Also tested locally using act 🤞

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (076dc97) to head (7e1eb19).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            3         3           
=========================================
  Hits             3         3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mxpv
Copy link
Copy Markdown
Owner

mxpv commented Apr 14, 2026

neat! thanks!

@mxpv mxpv merged commit 05f4d1f into mxpv:main Apr 14, 2026
9 checks passed
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