Skip to content

Commit

Permalink
Update to zig 0.14.0-dev.32+4aa15440c (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jun 15, 2024
1 parent 0de259f commit c415c47
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
zig-*
.zig-*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Supports async IO via [`libxev`][libxev].

[![test][ci-badge]][ci]

Branch `main` tested against Zig v0.12.0.
Branch `main` tested against Zig 0.14.0-dev.32+4aa15440c

Coroutines supported on Windows `x86_64`, Linux {`x86_64`, `aarch64`, `riscv64`}, and Mac {`x86_64`, `aarch64`}.

Expand Down
12 changes: 6 additions & 6 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ pub fn build(b: *std.Build) !void {
coro_options.addOption(usize, "debug_log_level", debug_log_level);
const coro_options_module = coro_options.createModule();
const coro = b.addModule("libcoro", .{
.root_source_file = .{ .path = "src/main.zig" },
.imports = &.{
.root_source_file = b.path("src/main.zig"),
.imports = &.{
.{ .name = "xev", .module = xev },
.{ .name = "libcoro_options", .module = coro_options_module },
},
Expand All @@ -26,7 +26,7 @@ pub fn build(b: *std.Build) !void {
{
const coro_test = b.addTest(.{
.name = "corotest",
.root_source_file = .{ .path = "src/test.zig" },
.root_source_file = b.path("src/test.zig"),
.target = target,
.optimize = optimize,
});
Expand All @@ -35,7 +35,7 @@ pub fn build(b: *std.Build) !void {

const internal_test = b.addTest(.{
.name = "corotest-internal",
.root_source_file = .{ .path = "src/coro.zig" },
.root_source_file = b.path("src/coro.zig"),
.target = target,
.optimize = optimize,
});
Expand All @@ -51,7 +51,7 @@ pub fn build(b: *std.Build) !void {
{
const aio_test = b.addTest(.{
.name = "aiotest",
.root_source_file = .{ .path = "src/test_aio.zig" },
.root_source_file = b.path("src/test_aio.zig"),
.target = target,
.optimize = optimize,
});
Expand All @@ -68,7 +68,7 @@ pub fn build(b: *std.Build) !void {
// Benchmark
const bench = b.addExecutable(.{
.name = "benchmark",
.root_source_file = .{ .path = "benchmark.zig" },
.root_source_file = b.path("benchmark.zig"),
.target = target,
.optimize = .ReleaseFast,
});
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.version = "0.0.0",
.dependencies = .{
.libxev = .{
.url = "git+https://github.com/mitchellh/libxev#a284cf851fe2f88f8947c01160c39ff216dacea1",
.hash = "12205b8ea5495b812b9a8943535a7af8da556644d2c1599dc01e1a5ea7aaf59bb2c7",
.url = "git+https://github.com/mitchellh/libxev#990ebb3be53f6f10e79504d74d77d2c4f95bbce0",
.hash = "12203d0b9555865f3ebcb9fc4670c5c46555e6458fbc51eb4620cfef8123a9640c90",
},
},
.paths = .{
Expand Down
2 changes: 1 addition & 1 deletion src/test_aio.zig
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ test "aio udp" {

fn processTest() !void {
const alloc = std.heap.c_allocator;
var child = std.ChildProcess.init(&.{ "sh", "-c", "exit 0" }, alloc);
var child = std.process.Child.init(&.{ "sh", "-c", "exit 0" }, alloc);
try child.spawn();

var xp = try xev.Process.init(child.id);
Expand Down

0 comments on commit c415c47

Please sign in to comment.