From f764f485d28ecd73dc9768e2478ec8c03bf483fb Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Fri, 22 Aug 2025 12:50:00 +0300 Subject: [PATCH] build(zig): expose wasmtimeDep function This allows consumers to reuse the dependency. (cherry picked from commit dab84a1b10e23f507558b4f0e988580a52c40780) --- build.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 4062e069..4f1be982 100644 --- a/build.zig +++ b/build.zig @@ -53,7 +53,8 @@ pub fn build(b: *std.Build) !void { b.installArtifact(lib); } -fn wasmtimeDep(target: std.Target) []const u8 { +/// Get the name of the wasmtime dependency for this target. +pub fn wasmtimeDep(target: std.Target) []const u8 { const arch = target.cpu.arch; const os = target.os.tag; const abi = target.abi;