Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to zig 0.14.0-dev.32+4aa15440c #23

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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