refactor: migrate to zig 0.17

This commit is contained in:
Nurul Huda (Apon) 2026-05-16 11:37:15 +06:00
parent ef5d7ebaad
commit 24001a8164
No known key found for this signature in database
GPG key ID: 5D3F1DE2855A2F79
9 changed files with 10 additions and 9 deletions

View file

@ -60,7 +60,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
version: 0.17.0-dev.304+9787df942
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

View file

@ -22,7 +22,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
version: 0.17.0-dev.304+9787df942
- name: Build project
run: zig build
@ -55,7 +55,7 @@ jobs:
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: 0.16.0
version: 0.17.0-dev.304+9787df942
- name: Download build artifacts
uses: actions/download-artifact@v4

1
.gitignore vendored
View file

@ -5,5 +5,6 @@ target
lib
tmp
.DS_Store
test/test262/polyfill-injected.js

View file

@ -1 +1 @@
zig 0.16.0
zig master

View file

@ -11,7 +11,7 @@ Temporalz provides Zig bindings to the Rust-based [temporal_rs](https://github.c
#### Prerequisites
- Zig 0.16.0
- Zig 0.17.0-dev.304+9787df942
- Rust toolchain (only required if [prebuilt staticlibs](#prebuilt) are not available for your platform)
#### Add as a Dependency

View file

@ -2,7 +2,7 @@
.name = .temporalz,
.version = "0.2.0",
.fingerprint = 0xd8d79d59acc4faae,
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0-dev.304+9787df942",
.dependencies = .{
.temporal = .{
.path = "pkg/temporal",

View file

@ -2,7 +2,7 @@
.name = .temporalz_example,
.version = "0.1.2",
.fingerprint = 0x686c9dfc777f9593,
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0-dev.304+9787df942",
.dependencies = .{
.temporalz = .{
.path = "../",

View file

@ -2,7 +2,7 @@
.name = .temporal,
.version = "0.2.0",
.fingerprint = 0xd5dcf3f41df6b117,
.minimum_zig_version = "0.16.0",
.minimum_zig_version = "0.17.0-dev.304+9787df942",
.dependencies = .{
.temporal_rs = .{
.url = "git+https://github.com/boa-dev/temporal?ref=v0.2.3#c003cc92325e19b26f8ee2f85e4a47d98cbcc781",

View file

@ -20,7 +20,7 @@ pub const std_options = std.Options{
const Allocator = std.mem.Allocator;
const BORDER = "=" ** 80;
const BORDER: [80]u8 = @splat('=');
// use in custom panic handler
var current_test: ?[]const u8 = null;