Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 027e1db

Browse files
Template 0.15.0
1 parent 8f0be64 commit 027e1db

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
> [!TIP]
2+
> Since the 0.15.0 update you can use `zig init -m` to get a minimal template!
3+
14
## Template Zig
25
A barebones zig application template, for zig stable releases.
36

build.zig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ pub fn build(b: *std.Build) void {
55
const optimize = b.standardOptimizeOption(.{});
66
const exe = b.addExecutable(.{
77
.name = "zig-app",
8-
.root_source_file = b.path("src/main.zig"),
9-
.target = target,
10-
.optimize = optimize,
8+
.root_module = b.createModule(.{
9+
.root_source_file = b.path("src/main.zig"),
10+
.target = target,
11+
.optimize = optimize,
12+
})
1113
});
1214
b.installArtifact(exe);
1315

0 commit comments

Comments
 (0)