chore: port to new Zig and zig-nuplugin versions
All checks were successful
/ test (push) Successful in 41s
All checks were successful
/ test (push) Successful in 41s
This commit is contained in:
parent
c6c41b4e5b
commit
3b56f24f12
3 changed files with 9 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
/zig-*
|
||||
/zig-out
|
||||
/.zig-cache
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
.dependencies = .{
|
||||
.nuplugin = .{
|
||||
.url = "git+https://git.mzte.de/LordMZTE/zig-nuplugin.git#b1f6d4a56d47de5182d37afe6c19a2fce2cf768d",
|
||||
.hash = "1220f87d9dc8d9d044a84db5d6a3a440a78e4b0aa2162dff254d76fb489352ca4e7b",
|
||||
.url = "git+https://git.mzte.de/LordMZTE/zig-nuplugin.git#4a6322e7f088a78a0c0ef21a4157a9f57f659213",
|
||||
.hash = "1220956eac5ca44d1cdf4355910986bc32f3d106d0d4b25708ceb9adb6f5d31e295f",
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -86,6 +86,11 @@ pub fn callRun(self: *State, con: *nu.Connection, id: u64, call: nu.proto.calls.
|
|||
} else return error.ProtocolViolation;
|
||||
}
|
||||
|
||||
pub fn callMetadata(self: *State, con: *nu.Connection, id: u64, call: nu.proto.calls.Metadata) !void {
|
||||
_ = self;
|
||||
try call.respond(con, id, .{});
|
||||
}
|
||||
|
||||
pub fn setGCDisabled(self: *State, con: *nu.Connection, disabled: bool) !void {
|
||||
if (disabled == self.gc_disabled) return;
|
||||
try con.setOption(.{ .GcDisabled = disabled });
|
||||
|
|
Loading…
Reference in a new issue