From fa0e4334c29deadb07d54b82edf8793a999b265a Mon Sep 17 00:00:00 2001 From: jinzhongjia Date: Wed, 19 Feb 2025 12:10:22 +0800 Subject: [PATCH] feat: support zig master --- .github/workflows/ci.yml | 2 +- README.md | 2 +- src/rpc.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cc341e..1e43f1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - version: [0.12.0, 0.13.0] + version: [0.12.0, 0.13.0, master] fail-fast: false runs-on: ${{ matrix.os }} steps: diff --git a/README.md b/README.md index 789a71b..2a8a474 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ _znvim_ is a [neovim remote rpc](https://neovim.io/doc/user/api.html#rpc-connect ## Getting Started -### `0.12.0` / `0.13.0` +### `0.12.0` / `0.13.0` / `master` 1. Add to `build.zig.zon` diff --git a/src/rpc.zig b/src/rpc.zig index 6910236..761015a 100644 --- a/src/rpc.zig +++ b/src/rpc.zig @@ -8,7 +8,7 @@ const log = std.log.scoped(.znvim); const Thread = std.Thread; -const TailQueue = std.TailQueue; +const TailQueue = if (builtin.zig_version.minor == 13) std.TailQueue else std.DoublyLinkedList; const Allocator = std.mem.Allocator;