aboutsummaryrefslogtreecommitdiff
path: root/lib/init-lib/src/main.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-11-20 23:01:45 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-11-20 23:01:45 -0700
commitf645022d16361865e24582d28f1e62312fbc73bb (patch)
tree7a7f03aff7bc7b9dc3f4ba1b3be57bd17caae1b7 /lib/init-lib/src/main.zig
parent8ca4a5240e0258c84e437ed4a37972c8fff7842d (diff)
downloadzig-f645022d16361865e24582d28f1e62312fbc73bb.tar.gz
zig-f645022d16361865e24582d28f1e62312fbc73bb.zip
merge `zig init-exe` and `zig init-lib` into `zig init`
Instead of `zig init-lib` and `zig init-exe`, now there is only `zig init`, which initializes any of the template files that do not already exist, and makes a package that contains both an executable and a static library. The idea is that the user can delete whatever they don't want. In fact, I think even more things should be added to the build.zig template.
Diffstat (limited to 'lib/init-lib/src/main.zig')
-rw-r--r--lib/init-lib/src/main.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/init-lib/src/main.zig b/lib/init-lib/src/main.zig
deleted file mode 100644
index ecfeade1a3..0000000000
--- a/lib/init-lib/src/main.zig
+++ /dev/null
@@ -1,10 +0,0 @@
-const std = @import("std");
-const testing = std.testing;
-
-export fn add(a: i32, b: i32) i32 {
- return a + b;
-}
-
-test "basic add functionality" {
- try testing.expect(add(3, 7) == 10);
-}