srctree

build.zig.zon
2041f97b  Gregory Mullen .{ 2041f97b  Gregory Mullen .name = "zig-tls", 2041f97b  Gregory Mullen // This is a [Semantic Version](https://semver.org/). 2041f97b  Gregory Mullen // In a future version of Zig it will be used for package deduplication. 2041f97b  Gregory Mullen .version = "0.0.0", 2041f97b  Gregory Mullen 2041f97b  Gregory Mullen // This field is optional. 2041f97b  Gregory Mullen // This is currently advisory only; Zig does not yet do anything 2041f97b  Gregory Mullen // with this value. 2041f97b  Gregory Mullen //.minimum_zig_version = "0.11.0", 2041f97b  Gregory Mullen 2041f97b  Gregory Mullen // This field is optional. 2041f97b  Gregory Mullen // Each dependency must either provide a `url` and `hash`, or a `path`. 2041f97b  Gregory Mullen // `zig build --fetch` can be used to fetch all dependencies of a package, recursively. 2041f97b  Gregory Mullen // Once all dependencies are fetched, `zig build` no longer requires 2041f97b  Gregory Mullen // internet connectivity. 2041f97b  Gregory Mullen .dependencies = .{ 2041f97b  Gregory Mullen // See `zig fetch --save <url>` for a command-line interface for adding dependencies. 2041f97b  Gregory Mullen //.example = .{ 2041f97b  Gregory Mullen // // When updating this field to a new URL, be sure to delete the corresponding 2041f97b  Gregory Mullen // // `hash`, otherwise you are communicating that you expect to find the old hash at 2041f97b  Gregory Mullen // // the new URL. 2041f97b  Gregory Mullen // .url = "https://example.com/foo.tar.gz", 2041f97b  Gregory Mullen // 2041f97b  Gregory Mullen // // This is computed from the file contents of the directory of files that is 2041f97b  Gregory Mullen // // obtained after fetching `url` and applying the inclusion rules given by 2041f97b  Gregory Mullen // // `paths`. 2041f97b  Gregory Mullen // // 2041f97b  Gregory Mullen // // This field is the source of truth; packages do not come from a `url`; they 2041f97b  Gregory Mullen // // come from a `hash`. `url` is just one of many possible mirrors for how to 2041f97b  Gregory Mullen // // obtain a package matching this `hash`. 2041f97b  Gregory Mullen // // 2041f97b  Gregory Mullen // // Uses the [multihash](https://multiformats.io/multihash/) format. 2041f97b  Gregory Mullen // .hash = "...", 2041f97b  Gregory Mullen // 2041f97b  Gregory Mullen // // When this is provided, the package is found in a directory relative to the 2041f97b  Gregory Mullen // // build root. In this case the package's hash is irrelevant and therefore not 2041f97b  Gregory Mullen // // computed. This field and `url` are mutually exclusive. 2041f97b  Gregory Mullen // .path = "foo", 2041f97b  Gregory Mullen //}, 2041f97b  Gregory Mullen }, 2041f97b  Gregory Mullen 2041f97b  Gregory Mullen // Specifies the set of files and directories that are included in this package. 2041f97b  Gregory Mullen // Only files and directories listed here are included in the `hash` that 2041f97b  Gregory Mullen // is computed for this package. 2041f97b  Gregory Mullen // Paths are relative to the build root. Use the empty string (`""`) to refer to 2041f97b  Gregory Mullen // the build root itself. 2041f97b  Gregory Mullen // A directory listed here means that all files within, recursively, are included. 2041f97b  Gregory Mullen .paths = .{ 2041f97b  Gregory Mullen // This makes *all* files, recursively, included in this package. It is generally 2041f97b  Gregory Mullen // better to explicitly list the files and directories instead, to insure that 2041f97b  Gregory Mullen // fetching from tarballs, file system paths, and version control all result 2041f97b  Gregory Mullen // in the same contents hash. 2041f97b  Gregory Mullen "", 2041f97b  Gregory Mullen // For example... 2041f97b  Gregory Mullen //"build.zig", 2041f97b  Gregory Mullen //"build.zig.zon", 2041f97b  Gregory Mullen //"src", 2041f97b  Gregory Mullen //"LICENSE", 2041f97b  Gregory Mullen //"README.md", 2041f97b  Gregory Mullen }, 2041f97b  Gregory Mullen }