summaryrefslogtreecommitdiff
path: root/docs/shared-libs.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 11:40:11 -0300
committerGabriel Schneider <[email protected]>2026-11-05 12:41:36 -0300
commit3f1533813b6692a736251e4d467a7f108229ddee (patch)
tree37a32c5ebbf9d3af08923856fd6fa516f3b33a39 /docs/shared-libs.md
parentcfd2b993feda1b3f7474225bb32db8cac8edc5ae (diff)
downloadpardes-3f1533813b6692a736251e4d467a7f108229ddee.tar.gz
pardes-3f1533813b6692a736251e4d467a7f108229ddee.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'docs/shared-libs.md')
-rw-r--r--docs/shared-libs.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md
index 412c2474..662579ea 100644
--- a/docs/shared-libs.md
+++ b/docs/shared-libs.md
@@ -58,8 +58,8 @@ Text section: tty 61,369,343 → 61,294,855 bytes (**−74,488**); gui
- **PNG and JPEG are wuffs's**, the decoders ghostty itself uses. image.zig
calls them wherever ghostty-vt is in the build (`wuffs_images`). Each image
- is sized from its header first: PNG's IHDR, JPEG's first SOF. Other formats,
- and builds without ghostty-vt (web), stay on stb_image.
+ is sized from its header first: PNG's IHDR, JPEG's first SOF. Other formats
+ stay on stb_image.
- **zstbi is compiled with `-DSTBI_NO_PNG -DSTBI_NO_JPEG`.** That also drops
stb's inflate, which only PNG used. Its `stb_image_write` include is patched
out (one count-checked anchor), with a no-op `stbi_flip_vertically_on_write`
@@ -81,8 +81,8 @@ Text section: tty 61,369,343 → 61,294,855 bytes (**−74,488**); gui
- **Two JPEG decoders: MuPDF's libjpeg and wuffs.** MuPDF's `DCTDecode` filter
(`filter-dct.c`) is written against libjpeg's streaming source-manager API.
Moving PDFs onto wuffs means a new DCT filter for fitz. Moving image panes
- onto libjpeg instead would leave the build without MuPDF (web)
- with no JPEG decoder.
+ onto libjpeg instead would leave a `-Dmupdf=false` build with no JPEG
+ decoder.
- **MuPDF's fitz image loaders** (`fz_load_png`, `_jpeg`, `_gif`, `_bmp`,
`_tiff`, `_pnm`, `_psd`; 16.7 KiB together). They are compiled because
mupdf.zig builds all of `source/fitz`. They are reachable only through