|
15 | 15 | // Once all dependencies are fetched, `zig build` no longer requires |
16 | 16 | // internet connectivity. |
17 | 17 | .dependencies = .{ |
18 | | - // See `zig fetch --save <url>` for a command-line interface for adding dependencies. |
19 | | - //.example = .{ |
20 | | - // // When updating this field to a new URL, be sure to delete the corresponding |
21 | | - // // `hash`, otherwise you are communicating that you expect to find the old hash at |
22 | | - // // the new URL. |
23 | | - // .url = "https://example.com/foo.tar.gz", |
24 | | - // |
25 | | - // // This is computed from the file contents of the directory of files that is |
26 | | - // // obtained after fetching `url` and applying the inclusion rules given by |
27 | | - // // `paths`. |
28 | | - // // |
29 | | - // // This field is the source of truth; packages do not come from a `url`; they |
30 | | - // // come from a `hash`. `url` is just one of many possible mirrors for how to |
31 | | - // // obtain a package matching this `hash`. |
32 | | - // // |
33 | | - // // Uses the [multihash](https://multiformats.io/multihash/) format. |
34 | | - // .hash = "...", |
35 | | - // |
36 | | - // // When this is provided, the package is found in a directory relative to the |
37 | | - // // build root. In this case the package's hash is irrelevant and therefore not |
38 | | - // // computed. This field and `url` are mutually exclusive. |
39 | | - // .path = "foo", |
40 | | - |
41 | | - // // When this is set to `true`, a package is declared to be lazily |
42 | | - // // fetched. This makes the dependency only get fetched if it is |
43 | | - // // actually used. |
44 | | - // .lazy = false, |
45 | | - //}, |
| 18 | + .httpz = .{ |
| 19 | + .url = "https://github.com/karlseguin/http.zig/archive/e1df408cd530d058a7e1652bd8dcfa7191ff776e.tar.gz", |
| 20 | + .hash = "1220efbc744de6e13e57ab9fa6370ea9690601e55ba6ced74179c081a295c99fd422", |
| 21 | + }, |
46 | 22 | }, |
47 | | - |
48 | | - // Specifies the set of files and directories that are included in this package. |
49 | | - // Only files and directories listed here are included in the `hash` that |
50 | | - // is computed for this package. Only files listed here will remain on disk |
51 | | - // when using the zig package manager. As a rule of thumb, one should list |
52 | | - // files required for compilation plus any license(s). |
53 | | - // Paths are relative to the build root. Use the empty string (`""`) to refer to |
54 | | - // the build root itself. |
55 | | - // A directory listed here means that all files within, recursively, are included. |
56 | 23 | .paths = .{ |
57 | 24 | "build.zig", |
58 | 25 | "build.zig.zon", |
|
0 commit comments