libghostty-vt-sys
Raw FFI bindings for libghostty-vt.
- Fetches and builds
libghostty-vt.afrom ghostty sources via Zig by default. - Exposes checked-in generated bindings in
src/bindings.rs. - Static linking is the baseline rather than a Cargo feature. Enable the
additive
link-dynamicfeature to link the shared library instead. - Set
GHOSTTY_SOURCE_DIRto force the build to use a local Ghostty checkout. - Set
GHOSTTY_ZIG_SYSTEM_DIRto force Zig package resolution through a pre-fetchedzig build --systemdirectory. This is intended for Nix and other sandboxed package managers that cannot fetch during build scripts. - Set
LIBGHOSTTY_VT_SYS_OPTIMIZEtoDebug,ReleaseSafe,ReleaseFast, orReleaseSmallto override the Zig optimize mode used by vendored builds. - If the
pkg-configfeature is enabled, the build will use an installedlibghostty-vtfound throughpkg-configonly whenGHOSTTY_SOURCE_DIRis unset. With the default static link mode, it probes Ghostty'slibghostty-vt-staticpkg-config module instead. - libghostty-vt is pre-1.0, so these bindings do not guarantee compatibility with arbitrary installed C API revisions.