authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 16:09:53 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-06-05 16:09:53 -07:00
logfe53c603ace946f51220e767e5286349dd4fb531
tree412672b7ba3ba8edcb500eb3e7f973f6f063b1b0
parent6e448cad10c23b4681b132a5ef96ed82adf11873

docs- mention zig.mod's `src` attribute can take a third field


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

docs/zig.mod.md+1-1
......@@ -44,7 +44,7 @@ Similar to `dependencies` but will only get added to the project if the current
4444This is the object used in the top-level `dependencies` attribute and used to add external code to your project.
4545
4646#### Dep `src`
47- Type: `type path`
47- Type: `type path ?version`
4848- Example: `git https://github.com/Hejsil/zig-clap`
4949- Required
5050This is the base attribute used to reference external code for use in your project. `type` is an enum and only allows certain values. `path` is the URL or other identifier used to locate the contents of this package based on the `type`.
src/util/dep.zig+1-1
......@@ -23,7 +23,7 @@ pub const Dep = struct {
2323 c_source_files: [][]const u8,
2424 only_os: [][]const u8,
2525 except_os: [][]const u8,
26 yaml: yaml.Mapping,
26 yaml: ?yaml.Mapping,
2727
2828 pub fn clean_path(self: Dep) ![]const u8 {
2929 var p = self.path;