Skip to content

Commit 0bb6211

Browse files
LordMZTEjoachimschmidt557
authored andcommitted
chore: port to Zig 0.13.0
1 parent f9ea80d commit 0bb6211

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: goto-bus-stop/setup-zig@v2
2424
with:
25-
version: 0.12.0
25+
version: 0.13.0
2626
- name: Build
2727
run: zig build docs
2828
- name: Upload

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
submodules: true
1919
- uses: goto-bus-stop/setup-zig@v2
2020
with:
21-
version: 0.12.0
21+
version: 0.13.0
2222
- name: Build
2323
run: zig build test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
zig-cache/
1+
.zig-cache/
22
zig-out/
33
deps.zig
44
gyro.lock

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This was originally code which was extracted from
88
[lscolors](https://github.com/ziglibs/lscolors) for use in
99
other zig libraries. More features have been added since.
1010

11-
`ansi-term` is designed to work with Zig 0.12.0.
11+
`ansi-term` is designed to work with Zig 0.13.0.
1212

1313
## Documentation
1414

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ pub fn build(b: *Build) void {
55
const optimize = b.standardOptimizeOption(.{});
66

77
_ = b.addModule("ansi-term", .{
8-
.root_source_file = .{ .path = "src/main.zig" },
8+
.root_source_file = b.path("src/main.zig"),
99
});
1010

1111
var main_tests = b.addTest(.{
12-
.root_source_file = .{ .path = "src/main.zig" },
12+
.root_source_file = b.path("src/main.zig"),
1313
.target = target,
1414
.optimize = optimize,
1515
});

src/format.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const csi = esc ++ "[";
1212

1313
const reset = csi ++ "0m";
1414

15-
const font_style_codes = std.ComptimeStringMap([]const u8, .{
15+
const font_style_codes = std.StaticStringMap([]const u8).initComptime(.{
1616
.{ "bold", "1" },
1717
.{ "dim", "2" },
1818
.{ "italic", "3" },

0 commit comments

Comments
 (0)