Skip to content

Commit bdd97b0

Browse files
committed
added minimum zig version, updated build.zig
1 parent 16f150b commit bdd97b0

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Zig Fuzz
22

33
This Zig module functions for fuzzy string matching, comparison, and flexible sorting of strings.
4+
Works with zig `0.14.0`, `0.14.1` and `0.15.1`.
45

56
## Features
67

build.zig

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ pub fn build(b: *std.Build) void {
77
const fuzzy_module = b.addModule("fuzzy", .{
88
.root_source_file = b.path("src/root.zig"),
99
.single_threaded = true,
10+
.optimize = optimize,
11+
.target = target,
1012
});
1113

1214
const options = b.addOptions();
1315
fuzzy_module.addOptions("build", options);
1416

15-
const lib_unit_tests = b.addTest(.{
16-
.root_module = b.addModule(.{
17-
.root_source_file = b.path("src/root.zig"),
18-
.target = target,
19-
.optimize = optimize,
20-
}),
21-
});
17+
const lib_unit_tests = b.addTest(.{ .root_module = fuzzy_module });
2218

2319
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
2420

build.zig.zon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.{
22
.name = .fuzzy,
3-
.version = "0.1.0",
3+
.version = "0.1.1",
44
.fingerprint = 0x29de903cd928751a,
5+
.minimum_zig_version = "0.14.0",
56
.paths = .{
67
"build.zig",
78
"build.zig.zon",

0 commit comments

Comments
 (0)