From 3beadfbe8fbca0d41ce2db5d8b30dc217677477e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 30 Dec 2021 08:03:46 +0000 Subject: [PATCH] Add zigmod and zig-clap --- .gitattributes | 2 +- build.zig | 2 ++ zig.mod | 1 + zigmod.lock | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 zigmod.lock diff --git a/.gitattributes b/.gitattributes index 689396c..cc14183 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,5 @@ * text=auto -*.zig text eol=lf # See https://github.com/ziglang/zig-spec/issues/38 +*.zig text eol=lf zig.mod text eol=lf zigmod.* text eol=lf zig.mod linguist-language=YAML diff --git a/build.zig b/build.zig index 1805b9c..c4a7341 100644 --- a/build.zig +++ b/build.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const deps = @import("./deps.zig"); pub fn build(b: *std.build.Builder) void { // Standard target options allows the person running `zig build` to choose @@ -14,6 +15,7 @@ pub fn build(b: *std.build.Builder) void { const exe = b.addExecutable("skip", "src/main.zig"); exe.setTarget(target); exe.setBuildMode(mode); + deps.addAllTo(exe); exe.install(); const run_cmd = exe.run(); diff --git a/zig.mod b/zig.mod index 520f311..752fc7e 100644 --- a/zig.mod +++ b/zig.mod @@ -3,3 +3,4 @@ name: skip license: MIT description: skip part of a file dev_dependencies: + - src: git https://github.com/Hejsil/zig-clap diff --git a/zigmod.lock b/zigmod.lock new file mode 100644 index 0000000..db0637c --- /dev/null +++ b/zigmod.lock @@ -0,0 +1,2 @@ +2 +git https://github.com/Hejsil/zig-clap commit-802a04a854e65254b0632d9785b2b0f6154686b8