authorgravatar for me@jeremia.devJeremia Dominguez <me@jeremia.dev> 2024-04-08 02:07:22-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-04-11 14:56:07-07:00
log0ac15b9726d03819f0e8837ae0490e1b9890a799
tree6c2247a7a99771cd0729c647709fd292f828848d
parent5b9579845dcc47de74dee2e2f17914ba20b15bec

Document lazy dependency in init build.zig.zon

Also added the same description to doc/build.zig.zon.md

2 files changed, 12 insertions(+), 0 deletions(-)

doc/build.zig.zon.md+7
......@@ -63,6 +63,13 @@ When this is provided, the package is found in a directory relative to the
6363build root. In this case the package's hash is irrelevant and therefore not
6464computed. This field and `url` are mutually exclusive.
6565
66#### `lazy`
67
68Boolean.
69
70When this is set to `true`, a package is declared to be lazily fetched. This
71makes the dependency only get fetched if it is actually used.
72
6673### `paths`
6774
6875List. Required.
lib/init/build.zig.zon+5
......@@ -37,6 +37,11 @@
3737 // // build root. In this case the package's hash is irrelevant and therefore not
3838 // // computed. This field and `url` are mutually exclusive.
3939 // .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,
4045 //},
4146 },
4247