build.zig.zon (3418B)
1 .{ 2 // This is the default name used by packages depending on this one. For 3 // example, when a user runs `zig fetch --save <url>`, this field is used 4 // as the key in the `dependencies` table. Although the user can choose a 5 // different name, most users will stick with this provided value. 6 // 7 // It is redundant to include "zig" in this name because it is already 8 // within the Zig package namespace. 9 .name = .zgpu, 10 11 // This is a [Semantic Version](https://semver.org/). 12 // In a future version of Zig it will be used for package deduplication. 13 .version = "0.0.0", 14 15 .fingerprint = 0x670ebe04b3d0b1f7, 16 17 // This field is optional. 18 // This is currently advisory only; Zig does not yet do anything 19 // with this value. 20 //.minimum_zig_version = "0.11.0", 21 22 // This field is optional. 23 // Each dependency must either provide a `url` and `hash`, or a `path`. 24 // `zig build --fetch` can be used to fetch all dependencies of a package, recursively. 25 // Once all dependencies are fetched, `zig build` no longer requires 26 // internet connectivity. 27 .dependencies = .{ 28 // See `zig fetch --save <url>` for a command-line interface for adding dependencies. 29 //.example = .{ 30 // // When updating this field to a new URL, be sure to delete the corresponding 31 // // `hash`, otherwise you are communicating that you expect to find the old hash at 32 // // the new URL. 33 // .url = "https://example.com/foo.tar.gz", 34 // 35 // // This is computed from the file contents of the directory of files that is 36 // // obtained after fetching `url` and applying the inclusion rules given by 37 // // `paths`. 38 // // 39 // // This field is the source of truth; packages do not come from a `url`; they 40 // // come from a `hash`. `url` is just one of many possible mirrors for how to 41 // // obtain a package matching this `hash`. 42 // // 43 // // Uses the [multihash](https://multiformats.io/multihash/) format. 44 // .hash = "...", 45 // 46 // // When this is provided, the package is found in a directory relative to the 47 // // build root. In this case the package's hash is irrelevant and therefore not 48 // // computed. This field and `url` are mutually exclusive. 49 // .path = "foo", 50 // 51 // // When this is set to `true`, a package is declared to be lazily 52 // // fetched. This makes the dependency only get fetched if it is 53 // // actually used. 54 // .lazy = false, 55 //}, 56 }, 57 58 // Specifies the set of files and directories that are included in this package. 59 // Only files and directories listed here are included in the `hash` that 60 // is computed for this package. Only files listed here will remain on disk 61 // when using the zig package manager. As a rule of thumb, one should list 62 // files required for compilation plus any license(s). 63 // Paths are relative to the build root. Use the empty string (`""`) to refer to 64 // the build root itself. 65 // A directory listed here means that all files within, recursively, are included. 66 .paths = .{ 67 "build.zig", 68 "build.zig.zon", 69 "src", 70 // For example... 71 //"LICENSE", 72 //"README.md", 73 }, 74 }