From f101ad5036314bf38aaf80d7baacfce1a270f749 Mon Sep 17 00:00:00 2001 From: guha-rahul <69rahul16@gmail.com> Date: Mon, 17 Mar 2025 17:26:12 +0530 Subject: [PATCH] chore: update zig version to 0.14.0 --- .github/workflows/ci.yml | 4 ++-- build.zig.zon | 47 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dff4be..64e4cfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: Set up Zig uses: korandoru/setup-zig@v1 with: - zig-version: 0.13.0 + zig-version: 0.14.0 - name: Lint run: zig fmt --check *.zig @@ -25,7 +25,7 @@ jobs: - name: Set up Zig uses: korandoru/setup-zig@v1 with: - zig-version: 0.13.0 + zig-version: 0.14.0 - name: Test run: zig build test --summary all diff --git a/build.zig.zon b/build.zig.zon index b3042ce..8016b64 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,11 +1,52 @@ .{ - .name = "snappyframesz", + // This is the default name used by packages depending on this one. For + // example, when a user runs `zig fetch --save `, this field is used + // as the key in the `dependencies` table. Although the user can choose a + // different name, most users will stick with this provided value. + // + // It is redundant to include "zig" in this name because it is already + // within the Zig package namespace. + .name = .snappyframesz, + + // This is a [Semantic Version](https://semver.org/). + // In a future version of Zig it will be used for package deduplication. .version = "0.0.1", + + // This field is optional. + // This is currently advisory only; Zig does not yet do anything + // with this value. + .minimum_zig_version = "0.14.0", + + // Together with name, this represents a globally unique package + // identifier. This field is generated by the Zig toolchain when the + // package is first created, and then *never changes*. This allows + // unambiguous detection of one package being an updated version of + // another. + // + // When forking a Zig project, this id should be regenerated (delete the + // field and run `zig build`) if the upstream project is still maintained. + // Otherwise, the fork is *hostile*, attempting to take control over the + // original project's identity. Thus it is recommended to leave the comment + // on the following line intact, so that it shows up in code reviews that + // modify the field. + .fingerprint = 0xd4ca733acb8be008, + .dependencies = .{ .snappyz = .{ - .url = "https://github.com/blockblaz/zig-snappy/archive/beb2a56.tar.gz", - .hash = "1220c856c5d5b87a07060fd0f74568a36ac9d619cf711d949d342c2340df936d20e7", + .url = "https://github.com/blockblaz/zig-snappy/archive/dd63108.tar.gz", + .hash = "zig_snappy-0.0.1-bDFzXpJWAAA3c5bLc8JZK_HCwd0mGLTuFgz4LndjnVao", }, }, + + // This field is optional. + // This is currently advisory only; Zig does not yet do anything + // with this value. // Specifies the set of files and directories that are included in this package. + // Only files and directories listed here are included in the `hash` that + // is computed for this package. Only files listed here will remain on disk + // when using the zig package manager. As a rule of thumb, one should list + // files required for compilation plus any license(s). + // Paths are relative to the build root. Use the empty string (`""`) to refer to + // the build root itself. + // A directory listed here means that all files within, recursively, are included. .paths = .{""}, }