From 314dae63d3cb17eb385e0486a5968fd7d16213ab Mon Sep 17 00:00:00 2001 From: Eric Willigers Date: Sat, 25 Apr 2026 07:30:05 +1000 Subject: [PATCH] use Zig 0.16.0 --- .github/workflows/tests.yml | 2 +- .github/workflows/zig-fmt.yml | 2 +- docs/INSTALLATION.md | 2 +- exercises/practice/allergies/.docs/instructions.append.md | 2 +- exercises/practice/anagram/.docs/instructions.append.md | 2 +- .../practice/perfect-numbers/.docs/instructions.append.md | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77e4a5cf..91d9e638 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,7 @@ jobs: - name: Install Zig uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 with: - version: 0.15.2 + version: 0.16.0 - name: Test exercises shell: bash diff --git a/.github/workflows/zig-fmt.yml b/.github/workflows/zig-fmt.yml index 27b2aa1e..bdedf8a1 100644 --- a/.github/workflows/zig-fmt.yml +++ b/.github/workflows/zig-fmt.yml @@ -12,7 +12,7 @@ jobs: - name: Install Zig uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 with: - version: 0.15.2 + version: 0.16.0 - name: Check that Zig code is formatted run: | diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index 7dd2f5c3..10f108e8 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -5,7 +5,7 @@ Fortunately, all of the popular installation methods are listed on the [Zig inst ## Zig version -Exercism currently supports Zig 0.15.2 (released on 2025-10-11) only. +Exercism currently supports Zig 0.16.0 (released on 2026-04-14) only. An exercise may be compatible with a different Zig version, but that isn't guaranteed. Zig has not yet reached version 1.0, and breaking changes are common. diff --git a/exercises/practice/allergies/.docs/instructions.append.md b/exercises/practice/allergies/.docs/instructions.append.md index a9dc6ee2..8d0e5c29 100644 --- a/exercises/practice/allergies/.docs/instructions.append.md +++ b/exercises/practice/allergies/.docs/instructions.append.md @@ -4,4 +4,4 @@ It may be helpful to look at the implementation of [`std.enums.EnumSet`][enumset]. -[enumset]: https://github.com/ziglang/zig/blob/0.15.2/lib/std/enums.zig#L285-L289 +[enumset]: https://ziglang.org/documentation/0.16.0/std/#std.enums.EnumSet diff --git a/exercises/practice/anagram/.docs/instructions.append.md b/exercises/practice/anagram/.docs/instructions.append.md index 9447a94d..f6e5ba38 100644 --- a/exercises/practice/anagram/.docs/instructions.append.md +++ b/exercises/practice/anagram/.docs/instructions.append.md @@ -13,6 +13,6 @@ For more details on hash maps in Zig, see: - [Zighelp - Hash Maps][zighelp] - [Zig Standard Library - `buf_set.zig`][buf-set] -[buf-set]: https://github.com/ziglang/zig/blob/0.15.2/lib/std/buf_set.zig +[buf-set]: https://ziglang.org/documentation/0.16.0/std/#std.BufSet [zig-hashmaps-explained]: https://devlog.hexops.com/2022/zig-hashmaps-explained/ [zighelp]: https://zighelp.org/chapter-2/#hash-maps diff --git a/exercises/practice/perfect-numbers/.docs/instructions.append.md b/exercises/practice/perfect-numbers/.docs/instructions.append.md index 04663e16..e9969679 100644 --- a/exercises/practice/perfect-numbers/.docs/instructions.append.md +++ b/exercises/practice/perfect-numbers/.docs/instructions.append.md @@ -8,6 +8,6 @@ For more details, see the [Zig Language Reference][zig-reference] and the implem However, note that this exercise does not currently test an input of 0 (because `std.testing` does [not yet support expecting a panic][proposal]). -[zig-reference]: https://ziglang.org/documentation/0.15.2/#unreachable -[assert]: https://github.com/ziglang/zig/blob/0.15.2/lib/std/debug.zig#L545-L560 +[zig-reference]: https://ziglang.org/documentation/0.16.0/#unreachable +[assert]: https://ziglang.org/documentation/0.16.0/std/#std.debug.assert [proposal]: https://github.com/ziglang/zig/issues/1356