Skip to content

Commit

Permalink
Merge pull request #166 from Syndica/ink/zig-upgrade
Browse files Browse the repository at this point in the history
update(git,build.zig,trace): Upgrade some dependencies and some of our own code for zig 0.13
  • Loading branch information
dnut authored Jun 10, 2024
2 parents 8d556c3 + 33c1084 commit 5ddea90
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
version: 0.13.0

- name: lint
run: |
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
version: 0.13.0

- name: test
run: zig build test
Expand All @@ -65,7 +65,7 @@ jobs:
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
version: 0.13.0

- name: benchmarks
run: zig build -Doptimize=ReleaseSafe benchmark
Expand All @@ -83,7 +83,7 @@ jobs:
- name: setup-zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.12.0
version: 0.13.0

- name: build release
run: zig build -Doptimize=ReleaseSafe
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
zig-cache/
.zig-cache/
zig-out/
data/

Expand All @@ -11,4 +11,4 @@ index_storage/

/gossip-dumps

**/.DS_Store
**/.DS_Store
16 changes: 8 additions & 8 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@
},
.dependencies = .{
.@"base58-zig" = .{
.url = "https://github.com/ultd/base58-zig/archive/7cec0723c99d713149ad4e875f888918d2687ca6.tar.gz",
.hash = "1220995cd000a5d0f8595b119de29573769531c002fe3448a2c69fa6307bd1332620",
.url = "https://github.com/Syndica/base58-zig/archive/e1001fbe8b41eed36d81e37931ada66b784e51dc.tar.gz",
.hash = "12206e5050a03cd9dcb896781de0cf541081488006532675371653f61d00c1f27433",
},
.@"zig-network" = .{
.url = "https://github.com/MasterQ32/zig-network/archive/2caffd712f57f29abb5e41a453cd1c2129517b05.tar.gz",
.hash = "122095b1af33a2fbe87af9365516e6c2d21f9f5a6725b539e03bcc6ed8df3c012f39",
.url = "https://github.com/ikskuh/zig-network/archive/d4506cd1950de8a6e6d3f28aed68a0b4f64e0b44.tar.gz",
.hash = "122080b2675fa7fdd7410af5f62942dec99e0ea766827c8c6506e6672b575fb0a50e",
},
.@"zig-cli" = .{
.url = "https://github.com/sam701/zig-cli/archive/8c7a798c0f7fa0358d7ab41106fc872fca4cd995.tar.gz",
.hash = "1220c008492d9460c3be2b209600a948181e6efb3bf0d79a1633def499632e708f4b",
},
.httpz = .{
.url = "https://github.com/karlseguin/http.zig/archive/d05b9889382d240c826c7654a999e4da515bd20a.tar.gz",
.hash = "1220833d40f1767fa46b0efc4ae1af9bd5880a8e6fe7a66ee0215be916263f149e40",
.url = "https://github.com/karlseguin/http.zig/archive/79dad0f0cc652830cd8e49bf3e73aa77155ad4b2.tar.gz",
.hash = "1220b8a918dfcee4fc8326ec337776e2ffd3029511c35f6b96d10aa7be98ca2faf99",
},
.zstd = .{
.url = "https://github.com/Syndica/zstd.zig/archive/a052e839a3dfc44feb00c2eb425815baa3c76e0d.tar.gz",
.hash = "122001d56e43ef94e31243739ae83d7508abf0b8102795aff1ac91446e7ff450d875",
},
.curl = .{
.url = "https://github.com/jiacai2050/zig-curl/archive/7b1e1c6adb1daca48bbae6bd18fc1386dc6076ab.tar.gz",
.hash = "1220f2f863742c19fec9381537083da27519a7e638ce690973b34faf89f8f2b32729",
.url = "https://github.com/jiacai2050/zig-curl/archive/8a3f45798a80a5de4c11c6fa44dab8785c421d27.tar.gz",
.hash = "1220f70ac854b59315a8512861e039648d677feb4f9677bd873d6b9b7074a5906485",
},
},
}
7 changes: 3 additions & 4 deletions src/trace/log.zig
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,10 @@ pub const StandardErrLogger = struct {
pub const StdErrSink = struct {
const Self = @This();

pub fn consumeEntries(_: Self, entries: []*StandardEntry) void {
pub fn consumeEntries(_: Self, entries: []const *StandardEntry) void {
const std_err_writer = std.io.getStdErr().writer();
var std_err_mux = std.debug.getStderrMutex();
std_err_mux.lock();
defer std_err_mux.unlock();
std.debug.lockStdErr();
defer std.debug.unlockStdErr();

for (entries) |e| {
logfmt.formatter(e, std_err_writer) catch unreachable;
Expand Down

0 comments on commit 5ddea90

Please sign in to comment.