diff --git a/doc/build.zig.zon.md b/doc/build.zig.zon.md index ad2ff61b64fdec8da68a29bbecbab43ff4926ce1..de5ec5fe9cdfc1a7308a3ad6f69f8feaa233b420 100644 --- a/doc/build.zig.zon.md +++ b/doc/build.zig.zon.md @@ -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 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` List. Required. diff --git a/lib/init/build.zig.zon b/lib/init/build.zig.zon index dc9d138ba59ba32e1c94328a0f176fdb47e3e571..50da5587b1efd053a232e78a8740b8cbd4ed8a98 100644 --- a/lib/init/build.zig.zon +++ b/lib/init/build.zig.zon @@ -37,6 +37,11 @@ // // build root. In this case the package's hash is irrelevant and therefore not // // computed. This field and `url` are mutually exclusive. // .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, //}, },