diff --git a/build.zig.zon b/build.zig.zon index c0e48ba..c7be018 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,7 @@ .{ .name = .websocket, - .version = "0.1.12", + .version = "0.2.0-alpha.1", + .minimum_zig_version = "0.17.0-dev.2384+ac77c23af", .dependencies = .{ .zlib = .{ .url = "https://github.com/madler/zlib/archive/refs/tags/v1.3.2.tar.gz", diff --git a/readme.md b/readme.md index f823edc..63d6030 100644 --- a/readme.md +++ b/readme.md @@ -2,19 +2,19 @@ A WebSocket server and client for Zig — a fork of [karlseguin/websocket.zig](https://github.com/karlseguin/websocket.zig) by Karl -Seguin, maintained for Zig **0.16**. +Seguin, maintained for Zig **0.17** (0.16: use the v0.1.x tags). All credit for this library is Karl's. The original is MIT-licensed and that copyright is retained in [LICENSE](./LICENSE). ## what this fork changes -- Zig **0.16** `std.Io` threaded through the server: `WorkerState.init(allocator, io, config)`. +- Zig **0.17** `std.Io` threaded through the server: `WorkerState.init(allocator, io, config)`. - `Server.runIo` for callers that own a `std.Io` listener and task lifecycle. - plain HTTP fallback dispatch on the same listener used for WebSocket upgrades. - bounded, independently configurable WebSocket-client and ordinary-HTTP drain periods for `runIo` and blocking-mode shutdown. -- a 0.16-compatible test runner. +- a 0.17-compatible test runner. Otherwise it tracks upstream. Full upstream documentation (server + client examples, options, migration links) is preserved below; the additions above are