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...@@ -63,6 +63,13 @@ When this is provided, the package is found in a directory relative to the
63build root. In this case the package's hash is irrelevant and therefore not63build root. In this case the package's hash is irrelevant and therefore not
64computed. This field and `url` are mutually exclusive.64computed. 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
66### `paths`73### `paths`
6774
68List. Required.75List. Required.
lib/init/build.zig.zon+5
...@@ -37,6 +37,11 @@...@@ -37,6 +37,11 @@
37 // // build root. In this case the package's hash is irrelevant and therefore not37 // // build root. In this case the package's hash is irrelevant and therefore not
38 // // computed. This field and `url` are mutually exclusive.38 // // computed. This field and `url` are mutually exclusive.
39 // .path = "foo",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,
40 //},45 //},
41 },46 },
4247