Skip to content

fix: Update deprecated APIs for Zig 0.16.0-dev.1859+212968c57 - #174

Merged
Hejsil merged 4 commits into
Hejsil:masterfrom
devoc09:master
Jan 7, 2026
Merged

fix: Update deprecated APIs for Zig 0.16.0-dev.1859+212968c57#174
Hejsil merged 4 commits into
Hejsil:masterfrom
devoc09:master

Conversation

@devoc09

@devoc09 devoc09 commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Replace deprecated std.mem.trimLeft with std.mem.trimStart
  • Replace deprecated std.fs.File with std.Io.File and update function signatures accordingly

Breaking Changes

The following functions have updated signatures due to the std.fs.File to std.Io.File migration:

  • reportToFile
  • helpToFile
  • usageToFile

Each function now requires a new io: std.Io parameter as the first argument, and the file parameter type has changed from std.fs.File to std.Io.File.

Signed-off-by: Takumi Katase <takumi.katase@devoc.ninja>
Signed-off-by: Takumi Katase <takumi.katase@devoc.ninja>
@devoc09

devoc09 commented Jan 2, 2026

Copy link
Copy Markdown
Contributor Author

Fix failing CI

Signed-off-by: Takumi Katase <takumi.katase@devoc.ninja>
@devoc09 devoc09 closed this Jan 2, 2026
@devoc09

devoc09 commented Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, I accidentally closed this.

@devoc09 devoc09 reopened this Jan 4, 2026
@Quadriphobs1

Copy link
Copy Markdown

I saw this was closed and assumed it had been abandoned — I was actually about to open a PR for the same fix.

One thought: should build.zig.zon be updated as well?

.minimum_zig_version = "0.16.0-dev.1859+212968c57",

I also made a fork with nix support if that's useful for testing.

@Hejsil

Hejsil commented Jan 5, 2026

Copy link
Copy Markdown
Owner

One thought: should build.zig.zon be updated as well?

.minimum_zig_version = "0.16.0-dev.1859+212968c57",

Yes please

I also made a fork with nix support if that's useful for testing.

I don't really use Nix, but I would be open to add this. Open a PR and we can discuss

Signed-off-by: Takumi Katase <takumi.katase@devoc.ninja>
@devoc09

devoc09 commented Jan 6, 2026

Copy link
Copy Markdown
Contributor Author

@Quadriphobs1 @Hejsil
Thanks for catching that! Updated minimum_zig_version to 0.16.0-dev.1859+212968c57.

@devoc09 devoc09 changed the title fix: Update deprecated APIs for Zig 0.16 fix: Update deprecated APIs for Zig 0.16.0-dev.1859+212968c57 Jan 6, 2026
@Hejsil
Hejsil merged commit 3b73a8e into Hejsil:master Jan 7, 2026
6 checks passed
@Hejsil

Hejsil commented Jan 7, 2026

Copy link
Copy Markdown
Owner

Thanks!

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