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