Repository navigation
release: zig-utils v0.8.0 — Zig 0.17.1 - #17
Merged
Merged
Conversation
- zon_coercion: struct-of-arrays @typeinfo (field_names/field_types/ field_attrs) instead of the removed std.meta.fields and .fields; std.lang.Type.Struct.FieldAttributes for @struct - z_index_buckets: `**` array repetition -> @Splat - a_star: std.DynamicBitSet -> std.bit_set.Dynamic - std.ArrayListUnmanaged -> std.ArrayList (same type, deprecated alias) - tests/root.zig: std.meta.declarations now returns names
The methods still used the pre-0.15 (fmt, FormatOptions, anytype writer)
signature and did not compile on 0.16 or 0.17 when referenced. They now
work with the {f} specifier.
hook_dispatcher had no tests, so its @hasDecl-based dispatch was never compiled by the suite. Also cover optional/array/slice coercion, union payload matching and hasFields.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release of zig-utils v0.8.0, the first version that builds on Zig 0.17.1. Part of the toolkit-wide migration tracked in labelle-toolkit/labelle-assembler#836.
Breaking: Zig 0.16 no longer supported; the old line stays on the
zig-0.16branch (created at v0.7.3, the previous head ofmain). Per the toolkit version rule, dropping a Zig version on a 0.x package is a minor bump: 0.7.3 -> 0.8.0.What changed
@typeInfoshapes:zon_coercion: uses the struct-of-arrays@typeInfo(field_names/field_types/field_attrs) instead of the removedstd.meta.fields/.fields.z_index_buckets:**array repetition replaced by@splat.a_star:std.DynamicBitSet->std.bit_set.Dynamic.std.ArrayListUnmanaged->std.ArrayList(same type; the alias is deprecated).Position.format/PositionI.formatstill had the pre-0.15(fmt, FormatOptions, anytype writer)signature and did not compile when referenced. They now take a*std.Io.Writerand work with the{f}specifier.hasFields).minimum_zig_versionand CI moved to 0.17.1.zig-pkg/(fetched dependencies) is no longer tracked and is git-ignored. That accounts for almost all of the deleted lines in this diff.Dependency pins
https://github.com/apotema/zspec/archive/v0.10.0.tar.gz), which builds on Zig 0.16 and 0.17. No other dependencies.What consumers must do
{f}(std.debug.print("{f}", .{pos}));{}on a type with aformatmethod is a compile error since Zig 0.15.Verified
With Zig 0.17.1, macOS arm64, released dependencies only (no
--fork):zig build test->101 of 101 tests passedzig build-> successNot verified