From 3f1533813b6692a736251e4d467a7f108229ddee Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 11:40:11 -0300 Subject: targets: the DOM web shell goes (src/web.zig and src/web/, its harnesses web_harness, web_snapshot, web_driver_test and web-snapshots/, tools/web_fixture.py, -Dplatform=web, -Ddump, and the web, web-harness, web-snap, web-e2e and web-driver-test steps), and with it what only a freestanding build needed: `hosted` and every guard on it (every build has a host now), memory's stack-fallback arenas and reduced_target sizes, the emscripten main, the tree-sitter libc shim and the stb stub, lsp's has_client, the web arms of the platform switches (-Dplatform is tui, gui or macos); the macOS files pass zig ast-check; docs/web.md is a paragraph on what it was Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/web/zstbi.zig | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/web/zstbi.zig (limited to 'src/web/zstbi.zig') diff --git a/src/web/zstbi.zig b/src/web/zstbi.zig deleted file mode 100644 index 76b144f7..00000000 --- a/src/web/zstbi.zig +++ /dev/null @@ -1,30 +0,0 @@ -//! Freestanding image-decoder shim. -//! -//! The browser core has no libc or C allocator ABI. Image bytes still survive -//! dumps, but decoding belongs in the JavaScript IO layer rather than pulling -//! stb_image and an Emscripten runtime into the state machine. - -const std = @import("std"); - -pub fn init(_: std.Io, _: std.mem.Allocator) void {} -pub fn deinit() void {} - -pub const Image = struct { - data: []u8 = &.{}, - width: u32 = 0, - height: u32 = 0, - num_components: u32 = 4, - bytes_per_component: u32 = 1, - bytes_per_row: u32 = 0, - is_hdr: bool = false, - - pub fn loadFromMemory(_: []const u8, _: u32) !Image { - return error.ImageDecodeUnavailable; - } - - pub fn resize(_: *const Image, _: u32, _: u32) Image { - return .{}; - } - - pub fn deinit(_: *Image) void {} -}; -- cgit v1.3