Compare commits

...

4 Commits

Author SHA1 Message Date
b0e28ff9cb
package: bump version
Some checks failed
CI / build (macos-latest, 0.13.0) (push) Has been cancelled
CI / build (true, ubuntu-latest, master) (push) Has been cancelled
CI / build (ubuntu-latest, 0.12.1) (push) Has been cancelled
CI / build (ubuntu-latest, 0.13.0) (push) Has been cancelled
CI / build (windows-latest, 0.13.0) (push) Has been cancelled
2024-10-14 19:23:42 -06:00
538c40246e
ci: reenable libsodium on zig master build 2024-10-14 19:15:16 -06:00
2c3124598e
deps: update libressl to 3.9.2+1
This change doesn't impact this library, but since the libsodium
dependency also updated, we might as well bump this now also.
2024-10-14 19:09:06 -06:00
Coleman McFarland
5e0cdc81ed build fix: update libsodium to get a build definition without aarch64_32
On recommendation from the libsodium dev, thir commit is from the "stable"
branch of libsodium, not a release tag. Update this to a release when one
containing this fix is available.
2024-10-14 18:56:24 -04:00
3 changed files with 10 additions and 11 deletions

View File

@ -21,7 +21,6 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
- zig-version: "master" - zig-version: "master"
check-format: true check-format: true
build-options: "-Denable-libsodium=false"
os: ubuntu-latest os: ubuntu-latest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:

View File

@ -1,6 +1,6 @@
.{ .{
.name = "nats_c", .name = "nats_c",
.version = "3.8.2", .version = "3.8.2+1",
.minimum_zig_version = "0.12.0", .minimum_zig_version = "0.12.0",
.dependencies = .{ .dependencies = .{
.nats_c = .{ .nats_c = .{
@ -8,8 +8,8 @@
.hash = "12207f10bd4b38309c79eadf22dfb3d9f134f1359dda01f9df6d9b42734ee2330b72", .hash = "12207f10bd4b38309c79eadf22dfb3d9f134f1359dda01f9df6d9b42734ee2330b72",
}, },
.libressl = .{ .libressl = .{
.url = "git+https://github.com/allyourcodebase/libressl.git?ref=3.9.2#a373b82991947b694196ee630bd6a648d71e2b3f", .url = "git+https://github.com/allyourcodebase/libressl.git?ref=3.9.2+1#02abfefee4e4eda28ce53c637b3c0d204ace8a6d",
.hash = "1220b1536d43ed8ce79ee05c53929f90b67dd299e61dfa249fa8f476f17eee46a95f", .hash = "12201f5cc06c88f191696106723797449baacb6ea38b07b6cf31c18c0382a6bea33e",
.lazy = true, .lazy = true,
}, },
.protobuf_c = .{ .protobuf_c = .{
@ -18,8 +18,8 @@
.lazy = true, .lazy = true,
}, },
.libsodium = .{ .libsodium = .{
.url = "git+https://github.com/jedisct1/libsodium.git?ref=1.0.20-RELEASE#9511c982fb1d046470a8b42aa36556cdb7da15de", .url = "git+https://github.com/jedisct1/libsodium.git?ref=stable#3c6da4b8c27c7d546746eadabc9e2dd6c1fdfc2c",
.hash = "1220d265dc673167ffe4a3cefe2840893d2910cfd773cfb1893ff768d5f1351d2a1f", .hash = "12207667c06c40826838b57922ec9c7f90ab2613bf317c6717d0ed2cdf6ca91df718",
.lazy = true, .lazy = true,
}, },
}, },

View File

@ -19,7 +19,7 @@ First, update your `build.zig.zon`:
```sh ```sh
# Initialize a `zig build` project if you haven't already # Initialize a `zig build` project if you haven't already
zig init zig init
# replace <refname> with the version you want to use, e.g. 3.8.2 # replace <refname> with the version you want to use, e.g. 3.8.2+1
zig fetch --save git+https://github.com/allyourcodebase/nats.c.git#<refname> zig fetch --save git+https://github.com/allyourcodebase/nats.c.git#<refname>
``` ```
@ -43,15 +43,15 @@ The NATS.c library has optional dependencies:
- [`libressl 3.9.2`][libressl] when building with `enable-tls` - [`libressl 3.9.2`][libressl] when building with `enable-tls`
- [`protobuf-c 1.5.0`][protobuf-c] when building with `enable-streaming` - [`protobuf-c 1.5.0`][protobuf-c] when building with `enable-streaming`
- [`libsodium 1.0.20`][libsodium] when building with `enable-libsodium` - [`libsodium stable branch`][libsodium] when building with `enable-libsodium`
These dependencies are currently automatically retrieved and compiled as static libraries by the Zig build system. These dependencies are currently automatically retrieved and compiled as static libraries by the Zig build system.
## Version Support Matrix ## Version Support Matrix
| Refname | NATS.c Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` | | Refname | NATS.c Version | Zig `0.12.x` | Zig `0.13.x` | Zig `0.14.0-dev` |
|----------|----------------|--------------|--------------|------------------| |-----------|----------------|--------------|--------------|------------------|
| `3.8.2` | `3.8.2` | ✅ | ✅ | with `-Denable-libsodium=false` | | `3.8.2+1` | `3.8.2+1` | ✅ | ✅ | ✅ |
[nats.c]: https://github.com/nats-io/nats.c [nats.c]: https://github.com/nats-io/nats.c
[libressl]: https://github.com/allyourcodebase/libressl [libressl]: https://github.com/allyourcodebase/libressl