Skip to content

Commit 8dfd280

Browse files
authoredMay 6, 2025··
feat: upgrade to zig 0.14 (#8)
1 parent f457961 commit 8dfd280

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed
 

‎.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install Zig
3535
uses: mlugg/setup-zig@v1
3636
with:
37-
version: "0.13.0" # Set the required Zig version
37+
version: "0.14.0" # Set the required Zig version
3838

3939
- name: Test state-transition-z
4040
run: |

‎.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Install Zig
4040
uses: mlugg/setup-zig@v1
4141
with:
42-
version: "0.13.0" # Set the required Zig version
42+
version: "0.14.0" # Set the required Zig version
4343

4444
- name: Build and Test
4545
run: |

‎build.zig.zon

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,29 @@
66
//
77
// It is redundant to include "zig" in this name because it is already
88
// within the Zig package namespace.
9-
.name = "state-transition-z",
9+
.name = .state_transition_z,
1010

1111
// This is a [Semantic Version](https://semver.org/).
1212
// In a future version of Zig it will be used for package deduplication.
1313
.version = "0.0.0",
1414

15-
// This field is optional.
16-
// This is currently advisory only; Zig does not yet do anything
17-
// with this value.
18-
//.minimum_zig_version = "0.11.0",
15+
// Together with name, this represents a globally unique package
16+
// identifier. This field is generated by the Zig toolchain when the
17+
// package is first created, and then *never changes*. This allows
18+
// unambiguous detection of one package being an updated version of
19+
// another.
20+
//
21+
// When forking a Zig project, this id should be regenerated (delete the
22+
// field and run `zig build`) if the upstream project is still maintained.
23+
// Otherwise, the fork is *hostile*, attempting to take control over the
24+
// original project's identity. Thus it is recommended to leave the comment
25+
// on the following line intact, so that it shows up in code reviews that
26+
// modify the field.
27+
.fingerprint = 0xd1ddb6abe067ee04, // Changing this has security and trust implications.
28+
29+
// Tracks the earliest Zig version that the package considers to be a
30+
// supported use case.
31+
.minimum_zig_version = "0.14.0",
1932

2033
// This field is optional.
2134
// Each dependency must either provide a `url` and `hash`, or a `path`.
@@ -27,7 +40,8 @@
2740
//.example = .{
2841
// // When updating this field to a new URL, be sure to delete the corresponding
2942
// // `hash`, otherwise you are communicating that you expect to find the old hash at
30-
// // the new URL.
43+
// // the new URL. If the contents of a URL change this will result in a hash mismatch
44+
// // which will prevent zig from using it.
3145
// .url = "https://example.com/foo.tar.gz",
3246
//
3347
// // This is computed from the file contents of the directory of files that is
@@ -45,7 +59,7 @@
4559
// // build root. In this case the package's hash is irrelevant and therefore not
4660
// // computed. This field and `url` are mutually exclusive.
4761
// .path = "foo",
48-
62+
//
4963
// // When this is set to `true`, a package is declared to be lazily
5064
// // fetched. This makes the dependency only get fetched if it is
5165
// // actually used.

0 commit comments

Comments
 (0)
Please sign in to comment.