Skip to content

Commit 08906cd

Browse files
committed
Upgrade to Zig 0.13.0-dev.346+e54fcdb5b
1 parent e61f297 commit 08906cd

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img align="right" width="160" height="160" src="https://user-images.githubusercontent.com/34946442/152222895-9c8adb22-a22d-4bce-a513-3486ca28bdd5.png"> zig**fsm** is a [finite state machine](https://en.wikipedia.org/wiki/Finite-state_machine) library for Zig.
22

3-
This library tracks [Zig master](https://github.com/ziglang/zig). Last test was on Zig version `0.12.0-dev.3678+130fb5cb0`.
3+
This library tracks [Zig master](https://github.com/ziglang/zig). Last test was on Zig version `0.13.0-dev.346+e54fcdb5b`.
44

55
## Table of Contents
66
* [Features](#features)

build.zig

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,27 @@ pub fn build(b: *std.Build) void {
55
const mode = b.standardOptimizeOption(.{});
66

77
const fsm_mod = b.addModule("zigfsm", .{
8-
.root_source_file = .{ .path = "src/main.zig" },
8+
.root_source_file = b.path("src/main.zig"),
99
});
1010

1111
const lib = b.addStaticLibrary(.{
1212
.name = "zigfsm",
13-
.root_source_file = .{
14-
.path = "src/main.zig",
15-
},
13+
.root_source_file = b.path("src/main.zig"),
1614
.target = target,
1715
.optimize = mode,
1816
});
1917

2018
b.installArtifact(lib);
2119

22-
const main_tests = b.addTest(.{ .name = "tests", .root_source_file = .{ .path = "src/tests.zig" } });
20+
const main_tests = b.addTest(.{ .name = "tests", .root_source_file = b.path("src/tests.zig") });
2321
main_tests.root_module.addImport("zigfsm", fsm_mod);
2422

2523
const test_step = b.step("test", "Run library tests");
2624
test_step.dependOn(&main_tests.step);
2725

2826
const benchmark = b.addExecutable(.{
2927
.name = "benchmark",
30-
.root_source_file = .{ .path = "src/benchmark.zig" },
28+
.root_source_file = b.path("src/benchmark.zig"),
3129
.optimize = std.builtin.Mode.ReleaseFast,
3230
.target = target,
3331
});

0 commit comments

Comments
 (0)