mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +00:00
Document lazy dependency in init build.zig.zon
Also added the same description to doc/build.zig.zon.md
This commit is contained in:
parent
5b9579845d
commit
0ac15b9726
@ -63,6 +63,13 @@ When this is provided, the package is found in a directory relative to the
|
|||||||
build root. In this case the package's hash is irrelevant and therefore not
|
build root. In this case the package's hash is irrelevant and therefore not
|
||||||
computed. This field and `url` are mutually exclusive.
|
computed. This field and `url` are mutually exclusive.
|
||||||
|
|
||||||
|
#### `lazy`
|
||||||
|
|
||||||
|
Boolean.
|
||||||
|
|
||||||
|
When this is set to `true`, a package is declared to be lazily fetched. This
|
||||||
|
makes the dependency only get fetched if it is actually used.
|
||||||
|
|
||||||
### `paths`
|
### `paths`
|
||||||
|
|
||||||
List. Required.
|
List. Required.
|
||||||
|
|||||||
@ -37,6 +37,11 @@
|
|||||||
// // build root. In this case the package's hash is irrelevant and therefore not
|
// // build root. In this case the package's hash is irrelevant and therefore not
|
||||||
// // computed. This field and `url` are mutually exclusive.
|
// // computed. This field and `url` are mutually exclusive.
|
||||||
// .path = "foo",
|
// .path = "foo",
|
||||||
|
|
||||||
|
// // When this is set to `true`, a package is declared to be lazily
|
||||||
|
// // fetched. This makes the dependency only get fetched if it is
|
||||||
|
// // actually used.
|
||||||
|
// .lazy = false,
|
||||||
//},
|
//},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user