Skip to content

Comments

Update to use Io where appropriate#44

Merged
prajwalch merged 2 commits intoprajwalch:mainfrom
Zambito1:main
Jan 1, 2026
Merged

Update to use Io where appropriate#44
prajwalch merged 2 commits intoprajwalch:mainfrom
Zambito1:main

Conversation

@Zambito1
Copy link
Collaborator

@Zambito1 Zambito1 commented Jan 1, 2026

The lastest master moved a lot of functions from std.fs to under std.Io, and requires a std.Io instance to be passed around. This does a direct mapping from the old funcitons to the new functions, and uses a locally defined single threaded io out of convenience. Maybe not the most ideal way to do it, but it seems like the easiest way to make sure it keeps compiling.

The lastest master moved a lot of functions from std.fs to under std.Io, and requires a std.Io instance to be passed around.
This does a direct mapping from the old funcitons to the new functions, and uses a locally defined single threaded io out of convenience.
Maybe not the most ideal way to do it, but it seems like the easiest way to make sure it keeps compiling.
@Zambito1
Copy link
Collaborator Author

Zambito1 commented Jan 1, 2026

zig build worked, but it still needs more changes

@Zambito1 Zambito1 marked this pull request as draft January 1, 2026 01:23
This is a breaking API change, but I think it makes sense in the context of the Io changes.
It adds an Io argument to functions that call other functions that require an io value.
@Zambito1
Copy link
Collaborator Author

Zambito1 commented Jan 1, 2026

Tests are passing, but my application that uses the library ran into another issue. I solved that (see the force push), but should take a solid look before merging.

@Zambito1 Zambito1 marked this pull request as ready for review January 1, 2026 02:00
@Zambito1 Zambito1 changed the title Minimal change to build against latest master Update to use Io where appropriate Jan 1, 2026
@prajwalch
Copy link
Owner

Hi, thanks for keeping it up-to-date.

I don't write Zig much these days so I need someone who can takeover the project.

Would you like to collab?

@prajwalch prajwalch merged commit 489439c into prajwalch:main Jan 1, 2026
1 check failed
@Zambito1
Copy link
Collaborator Author

Zambito1 commented Jan 1, 2026

Sure, happy to help!

@prajwalch
Copy link
Owner

Great. I have sent you a invitation request.

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