authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-25 17:05:13 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-04-25 17:05:13 -07:00
loge97e004ec8e27431a01d9cf2956476b7a8703d7c
treef58384893e36b0d23dd9397bf65ad31277df8439
parentf629cd04c9907c1f39e527a30e99393c2cc643f3

remove empty main


4 files changed, 0 insertions(+), 49 deletions(-)

.gitattributes-2
...@@ -2,5 +2,3 @@...@@ -2,5 +2,3 @@
2*.zig text eol=lf2*.zig text eol=lf
3zig.mod text eol=lf3zig.mod text eol=lf
4zigmod.* text eol=lf4zigmod.* text eol=lf
5zig.mod linguist-language=YAML
6zig.mod gitlab-language=yaml
.gitignore-1
...@@ -1,3 +1,2 @@...@@ -1,3 +1,2 @@
1zig-*1zig-*
2.zigmod2.zigmod
3deps.zig
build.zig deleted-37
...@@ -1,37 +0,0 @@
1const std = @import("std");
2const deps = @import("./deps.zig");
3
4pub fn build(b: *std.build.Builder) void {
5 // Standard target options allows the person running `zig build` to choose
6 // what target to build for. Here we do not override the defaults, which
7 // means any target is allowed, and the default is native. Other options
8 // for restricting supported target set are available.
9 const target = b.standardTargetOptions(.{});
10
11 // Standard release options allow the person running `zig build` to select
12 // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
13 const mode = b.standardReleaseOptions();
14
15 const exe = b.addExecutable("zig-git", "main.zig");
16 exe.setTarget(target);
17 exe.setBuildMode(mode);
18 deps.addAllTo(exe);
19 exe.install();
20
21 const run_cmd = exe.run();
22 run_cmd.step.dependOn(b.getInstallStep());
23 if (b.args) |args| {
24 run_cmd.addArgs(args);
25 }
26
27 const run_step = b.step("run", "Run the app");
28 run_step.dependOn(&run_cmd.step);
29
30 const exe_tests = b.addTest("main.zig");
31 exe_tests.setTarget(target);
32 exe_tests.setBuildMode(mode);
33 deps.addAllTo(exe_tests);
34
35 const test_step = b.step("test", "Run unit tests");
36 test_step.dependOn(&exe_tests.step);
37}
main.zig deleted-9
...@@ -1,9 +0,0 @@
1const std = @import("std");
2
3pub fn main() anyerror!void {
4 std.log.info("All your codebase are belong to us.", .{});
5}
6
7test "basic test" {
8 try std.testing.expectEqual(10, 3 + 7);
9}