# HG changeset patch # User Nathan Michaels # Date 1717346330 -7200 # Sun Jun 02 18:38:50 2024 +0200 # Node ID 7229d7f084b2a3ae742a4dde5bf34dfdb1e44cf2 # Parent f2b3c453a9026ea8bb1f8be3a234d9da421d65a3 Make this a package in Zig's package manager. diff --git a/build.zig b/build.zig --- a/build.zig +++ b/build.zig @@ -11,6 +11,10 @@ .optimize = mode, }); b.installArtifact(lib); + _ = b.addModule( + "sodium-wrapper", + .{ .root_source_file = b.path("src/sodium.zig") }, + ); var tests = b.addTest(.{ .root_source_file = b.path("src/sodium.zig"), diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,11 @@ +.{ + .name = "sodium-wrapper", + .version = "0.0.1", + .dependencies = .{}, + .minimum_zig_version = "0.13.0", + .paths = .{ + "src", + "build.zig", + "build.zig.zon", + }, +}