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...@@ -44,7 +44,7 @@ Similar to `dependencies` but will only get added to the project if the current
44This is the object used in the top-level `dependencies` attribute and used to add external code to your project.44This is the object used in the top-level `dependencies` attribute and used to add external code to your project.
4545
46#### Dep `src`46#### Dep `src`
47- Type: `type path`47- Type: `type path ?version`
48- Example: `git https://github.com/Hejsil/zig-clap`48- Example: `git https://github.com/Hejsil/zig-clap`
49- Required49- Required
50This 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`.50This 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 {...@@ -23,7 +23,7 @@ pub const Dep = struct {
23 c_source_files: [][]const u8,23 c_source_files: [][]const u8,
24 only_os: [][]const u8,24 only_os: [][]const u8,
25 except_os: [][]const u8,25 except_os: [][]const u8,
26 yaml: yaml.Mapping,26 yaml: ?yaml.Mapping,
2727
28 pub fn clean_path(self: Dep) ![]const u8 {28 pub fn clean_path(self: Dep) ![]const u8 {
29 var p = self.path;29 var p = self.path;