chore: port to new Zig and zig-nuplugin versions
All checks were successful
/ test (push) Successful in 41s

This commit is contained in:
LordMZTE 2024-07-02 13:17:49 +02:00
parent c6c41b4e5b
commit 3b56f24f12
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 9 additions and 3 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
/zig-*
/zig-out
/.zig-cache

View file

@ -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",
},
},

View file

@ -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 });