mirror of
https://git.xeondev.com/LR/S.git
synced 2026-02-04 06:55:06 +01:00
chore(build!): update to zig 0.16.0-dev.2459+37d14a4f3
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Getting Started
|
# Getting Started
|
||||||
## Requirements
|
## Requirements
|
||||||
- Zig 0.16.0-dev.2368: [Linux](https://ziglang.org/builds/zig-x86_64-linux-0.16.0-dev.2368+380ea6fb5.tar.xz)/[Windows](https://ziglang.org/builds/zig-x86_64-windows-0.16.0-dev.2368+380ea6fb5.zip)
|
- Zig 0.16.0-dev.2459: [Linux](https://ziglang.org/builds/zig-x86_64-linux-0.16.0-dev.2459+37d14a4f3.tar.xz)/[Windows](https://ziglang.org/builds/zig-x86_64-windows-0.16.0-dev.2459+37d14a4f3.zip)
|
||||||
|
|
||||||
#### For additional help, you can join our [discord server](https://discord.xeondev.com)
|
#### For additional help, you can join our [discord server](https://discord.xeondev.com)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.{
|
.{
|
||||||
.name = .LR_S,
|
.name = .LR_S,
|
||||||
.version = "0.1.0",
|
.version = "0.1.0",
|
||||||
.minimum_zig_version = "0.16.0-dev.2368+380ea6fb5",
|
.minimum_zig_version = "0.16.0-dev.2459+37d14a4f3",
|
||||||
.paths = .{""},
|
.paths = .{""},
|
||||||
.fingerprint = 0x50ff8392fab61337,
|
.fingerprint = 0x50ff8392fab61337,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1721,16 +1721,6 @@ pub fn Poll(comptime io_options: IoOptions) type {
|
|||||||
return tio.vtable.dirCreateDirPathOpen(tio.userdata, dir, sub_path, perm, options);
|
return tio.vtable.dirCreateDirPathOpen(tio.userdata, dir, sub_path, perm, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fileWriteStreaming(userdata: ?*anyopaque, file: Io.File, header: []const u8, data: []const []const u8, splat: usize) Io.File.Writer.Error!usize {
|
|
||||||
const p: *ThisPoll = @ptrCast(@alignCast(userdata));
|
|
||||||
try checkCancel(p);
|
|
||||||
|
|
||||||
var t: Io.Threaded = .init_single_threaded;
|
|
||||||
const tio = t.io();
|
|
||||||
|
|
||||||
return tio.vtable.fileWriteStreaming(tio.userdata, file, header, data, splat);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn fileWritePositional(userdata: ?*anyopaque, file: Io.File, header: []const u8, data: []const []const u8, splat: usize, offset: u64) Io.File.WritePositionalError!usize {
|
fn fileWritePositional(userdata: ?*anyopaque, file: Io.File, header: []const u8, data: []const []const u8, splat: usize, offset: u64) Io.File.WritePositionalError!usize {
|
||||||
const p: *ThisPoll = @ptrCast(@alignCast(userdata));
|
const p: *ThisPoll = @ptrCast(@alignCast(userdata));
|
||||||
try checkCancel(p);
|
try checkCancel(p);
|
||||||
@@ -1791,14 +1781,16 @@ pub fn Poll(comptime io_options: IoOptions) type {
|
|||||||
return tio.vtable.fileReadPositional(tio.userdata, file, data, offset);
|
return tio.vtable.fileReadPositional(tio.userdata, file, data, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn fileReadStreaming(userdata: ?*anyopaque, file: Io.File, data: []const []u8) Io.File.Reader.Error!usize {
|
fn operate(userdata: ?*anyopaque, operation: Io.Operation) Io.Cancelable!Io.Operation.Result {
|
||||||
|
// TODO: implement network operations once they're migrated to this API.
|
||||||
|
|
||||||
const p: *ThisPoll = @ptrCast(@alignCast(userdata));
|
const p: *ThisPoll = @ptrCast(@alignCast(userdata));
|
||||||
try checkCancel(p);
|
try checkCancel(p);
|
||||||
|
|
||||||
var t: Io.Threaded = .init_single_threaded;
|
var t: Io.Threaded = .init_single_threaded;
|
||||||
const tio = t.io();
|
const tio = t.io();
|
||||||
|
|
||||||
return tio.vtable.fileReadStreaming(tio.userdata, file, data);
|
return tio.vtable.operate(tio.userdata, operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn socketClose(socket: posix.socket_t) void {
|
fn socketClose(socket: posix.socket_t) void {
|
||||||
|
|||||||
2
envrc
2
envrc
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# DEPENDS: curl, tar, xz, realpath
|
# DEPENDS: curl, tar, xz, realpath
|
||||||
|
|
||||||
ZIG_VERSION="0.16.0-dev.2368+380ea6fb5"
|
ZIG_VERSION="0.16.0-dev.2459+37d14a4f3"
|
||||||
ZIG_PLATFORM="x86_64-linux"
|
ZIG_PLATFORM="x86_64-linux"
|
||||||
ZIG_DIST="zig-${ZIG_PLATFORM}-${ZIG_VERSION}"
|
ZIG_DIST="zig-${ZIG_PLATFORM}-${ZIG_VERSION}"
|
||||||
ZIG_DIR="./.direnv/${ZIG_DIST}/"
|
ZIG_DIR="./.direnv/${ZIG_DIST}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user