From ad868b45cfd445aa4d3f53cf8dda4b62b73efb54 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 30 May 2024 01:15:38 -0700 Subject: [PATCH] globalOption got dropped from std.meta, use extras --- src/mod.zig | 3 ++- zigmod.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod.zig b/src/mod.zig index e8b62566bfef61074737bb58fa4bb72f33dc1834..b5cd4b62d6327973d1cb2f3e505fdc218584dfb8 100644 --- a/src/mod.zig +++ b/src/mod.zig @@ -1,6 +1,7 @@ const std = @import("std"); const root = @import("root"); -const impl = std.meta.globalOption("tracer_impl", type) orelse none; +const extras = @import("extras"); +const impl = extras.globalOption(type, "tracer_impl") orelse none; threadlocal var started = false; diff --git a/zigmod.yml b/zigmod.yml index b60ce9399bd95518035d39907a9480c23e522718..a63fecf277ba141b3285b31fa78ce915dc2af5c9 100644 --- a/zigmod.yml +++ b/zigmod.yml @@ -4,3 +4,4 @@ main: src/mod.zig license: MIT description: Generic tracing library for Zig, supports multiple backends. dependencies: + - src: git https://github.com/nektro/zig-extras -- 2.54.0