Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The application is written in Rust

Status: accepted. Date: 2026-11-05.

libghostty-vt is Zig and the first test harness is C, so the application language was open between Zig, C, and Rust. We chose Rust. Zig would have given one toolchain for the whole repo and a CRT-free Windows 7 binary with no extra work, but it is pre-1.0 and breaks on every release, which the owner considers too risky for a long-lived project. Rust is stable, is where cosmic-text and wgpu live natively, gives compile-time thread safety at the point where the Backend thread, the VT state and the Renderer meet, and is the language the owner is most productive in. C was ranked between the two and offered nothing Rust lacks for this project.

Consequences

  • Windows 7 is a tier-3 Rust target when the standard library is used, so the standard-library policy is a separate decision (see the next ADR once settled).
  • libghostty-vt is consumed only through its C API.
  • The Hook, which is injected into child processes, must never pull a Rust runtime into those processes; it is built without the standard library.