Skip to content

Commit 0ac15b9

Browse files
TUSFandrewrk
authored andcommitted
Document lazy dependency in init build.zig.zon
Also added the same description to doc/build.zig.zon.md
1 parent 5b95798 commit 0ac15b9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

doc/build.zig.zon.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ When this is provided, the package is found in a directory relative to the
6363
build root. In this case the package's hash is irrelevant and therefore not
6464
computed. This field and `url` are mutually exclusive.
6565

66+
#### `lazy`
67+
68+
Boolean.
69+
70+
When this is set to `true`, a package is declared to be lazily fetched. This
71+
makes the dependency only get fetched if it is actually used.
72+
6673
### `paths`
6774

6875
List. Required.

lib/init/build.zig.zon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)