From 31cc713dccab3e547169c790e8a3be694f1280b0 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 26 May 2021 21:02:14 +0200 Subject: Move src/lib.zig to src/main.zig, release 0.2.0 Rationale: `zig init-lib` generates src/main.zig, not src/lib.zig. Also, libraries like hzzp (https://github.com/truemedian/hzzp) use src/main.zig instead of src/lib.zig. This is a breaking change. --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index b621d09..8d3b813 100644 --- a/build.zig +++ b/build.zig @@ -4,7 +4,7 @@ pub fn build(b: *std.build.Builder) !void { const mode = b.standardReleaseOptions(); const target = b.standardTargetOptions(.{}); - var lib_tests = b.addTest("src/lib.zig"); + var lib_tests = b.addTest("src/main.zig"); lib_tests.setBuildMode(mode); const test_step = b.step("test", "Run library tests"); @@ -14,7 +14,7 @@ pub fn build(b: *std.build.Builder) !void { var znk_tests = b.addTest("tool/znk.zig"); znk_tests.setBuildMode(mode); - znk_tests.addPackagePath("nkeys", "src/lib.zig"); + znk_tests.addPackagePath("nkeys", "src/main.zig"); znk_tests.addBuildOption([]const u8, "version", znk_version); const znk_test_step = b.step("test-znk", "Run znk tests"); @@ -23,7 +23,7 @@ pub fn build(b: *std.build.Builder) !void { const znk = b.addExecutable("znk", "tool/znk.zig"); znk.setBuildMode(mode); znk.setTarget(target); - znk.addPackagePath("nkeys", "src/lib.zig"); + znk.addPackagePath("nkeys", "src/main.zig"); znk.addBuildOption([]const u8, "version", znk_version); const znk_install = b.addInstallArtifact(znk); -- cgit v1.2.3