crates/turborepo-ghostty-sys/README.md
Raw FFI bindings for libghostty-vt, the virtual terminal library extracted from Ghostty.
At build time this crate fetches a pinned Ghostty commit and compiles
libghostty-vt via Zig. Checked-in src/bindings.rs provides the Rust FFI
definitions.
PATHgit for vendored source fetchOptional environment variables:
GHOSTTY_SOURCE_DIR — use a local Ghostty checkout instead of fetchingGHOSTTY_ZIG_SYSTEM_DIR — pre-populated Zig package cache for offline buildsTURBOREPO_GHOSTTY_SYS_OPTIMIZE — override Zig optimize modeThis crate vendors FFI and build logic in-tree rather than depending on the upstream crates.io packages. The following projects were used as inspiration and source material:
libghostty-vt is
compiled from Ghostty sources at build time. License: MIT.src/bindings.rs
and build.rs are adapted from the
libghostty-vt-sys
crate (bindings generated from libghostty-vt 0.2.0). License: MIT OR
Apache-2.0.