Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Zig version to 0.14 #21

Closed
inge4pres opened this issue Mar 5, 2025 · 1 comment · Fixed by #24
Closed

Upgrade Zig version to 0.14 #21

inge4pres opened this issue Mar 5, 2025 · 1 comment · Fixed by #24
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@inge4pres
Copy link
Collaborator

inge4pres commented Mar 5, 2025

Describe the current state

The current project is using Zig 0.13.
Now that Zig 0.14 is released we should plan the migration to it.

Describe the desired state

0.14 is the minimum version supported by the repo.

Proposed implementation

There are 2 particular breaking changes that we need to amend:

  1. @setCold is now @branchHint, used in here and here

  2. attributes.Attributes.from uses metaprogramming to convert the anytype fields passed to populate attributes. This is changed and needs an update, it can be done by looking at what the std.fmt namespace printing is doing

We can also specify the minimum Zig version in build.zig.zon, although that's not enforced AFAICT.

@inge4pres inge4pres added enhancement New feature or request good first issue Good for newcomers labels Mar 5, 2025
@inge4pres
Copy link
Collaborator Author

There's also deprecation for "managed" containers, which means that std.ArrayList will have to be updated in their call sites.
See https://ziglang.org/download/0.14.0/release-notes.html#Embracing-Unmanaged-Style-Containers

@inge4pres inge4pres changed the title Upgrade Zig version to .014 Upgrade Zig version to 0.14 Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant