From a61caad23521a20c6f1fa186d68d4b7114bf9078 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 18 Apr 2023 01:02:21 -0500 Subject: [PATCH] chore: add zig module --- README.md | 2 +- build.zig | 3 +++ build.zig.zon | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1ea93d..e9e2337 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ const StringContext = struct { } }; -test { +test { const Pair = StringTrie.Pair; const allocator = std.testing.allocator; diff --git a/build.zig b/build.zig index b8263c9..9bf202b 100644 --- a/build.zig +++ b/build.zig @@ -15,6 +15,9 @@ pub fn build(b: *std.Build) void { // set a preferred release mode, allowing the user to decide how to optimize. const optimize = b.standardOptimizeOption(.{}); + const module = b.addModule("hamt", .{ .source_file = .{ .path = "src/lib.zig" } }); + _ = module; + const lib = b.addStaticLibrary(.{ .name = "hamt", // In this case the main source file is merely a path, however, in more diff --git a/build.zig.zon b/build.zig.zon index 18ad8a8..003940b 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,5 +1,5 @@ .{ .name = "hamt", - .version = "0.0.1", + .version = "0.1.0", .dependencies = .{}, }