build(zig): expose wasmtimeDep function

This allows consumers to reuse the dependency.

(cherry picked from commit dab84a1b10)
This commit is contained in:
ObserverOfTime 2025-08-22 12:50:00 +03:00
parent d5b8c19d0b
commit f764f485d2

View file

@ -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;