Skip to content

Commit

Permalink
chore: port to Zig 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMZTE committed Jun 21, 2024
1 parent f9ea80d commit 86a00a9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
version: 0.13.0
- name: Build
run: zig build docs
- name: Upload
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.12.0
version: 0.13.0
- name: Build
run: zig build test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zig-cache/
.zig-cache/
zig-out/
deps.zig
gyro.lock
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This was originally code which was extracted from
[lscolors](https://github.com/ziglibs/lscolors) for use in
other zig libraries. More features have been added since.

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

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ pub fn build(b: *Build) void {
const optimize = b.standardOptimizeOption(.{});

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

var main_tests = b.addTest(.{
.root_source_file = .{ .path = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
Expand Down
2 changes: 1 addition & 1 deletion src/format.zig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const csi = esc ++ "[";

const reset = csi ++ "0m";

const font_style_codes = std.ComptimeStringMap([]const u8, .{
const font_style_codes = std.StaticStringMap([]const u8).initComptime(.{
.{ "bold", "1" },
.{ "dim", "2" },
.{ "italic", "3" },
Expand Down

0 comments on commit 86a00a9

Please sign in to comment.