const std = @import("std"); /// Returns the appropriate allocator for the target. /// WASM: page_allocator (backed by memory.grow) /// Native: GeneralPurposeAllocator for testing pub fn getAllocator() std.mem.Allocator { if (@import("builtin").target.cpu.arch == .wasm32) { return std.heap.wasm_allocator; } else { // For native builds, use the page allocator (simple, no state) return std.heap.page_allocator; } }