Files
ghostty-rs/crates/ghostty-terminal/Cargo.toml
T
ddidderr a1ed0cd776 fix: use Zig's numeric parsing in protocol and escape-sequence parsers
Rust's str::parse accepts and rejects different inputs than Zig's
std.fmt.parseInt/parseFloat (underscores, base prefixes, signs). The
config layer already used the Zig ports; now the protocol parsers do
too (call site -> Zig reference -> status in final-Z12.md):
- zig_fmt moves into the leaf crate ghostty-zigfmt (ghostty-vt cannot
  depend on ghostty-os); ghostty-os re-exports it unchanged.
- ghostty-vt: kitty graphics keys, kitty text sizing, OSC 4/5/10-19
  color indices, hex color components and intensities, OSC 9 sleep and
  progress, OSC 133 exit codes, OSC 3008 fields, kitty color palette.
- ghostty-terminal: tmux layout, format variables and pane tabs.
- ghostty-os: URI ports and %XX decoding; ghostty-bench CLI arguments.
Expected values were cross-checked against the real Zig toolchain.

Test Plan:
- cargo test --workspace --no-fail-fast
- just check-macos (both), just check-windows, just check-wasm
2026-10-12 12:45:55 +02:00

37 lines
1.0 KiB
TOML

[package]
name = "ghostty-terminal"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
bytemuck = { version = "1.25.2", features = ["derive", "extern_crate_alloc"] }
crossbeam-channel = "0.5.17"
flate2 = "1.1.10"
ghostty-datastruct.workspace = true
ghostty-unicode.workspace = true
ghostty-vt.workspace = true
ghostty-zigfmt.workspace = true
log = "0.4.34"
png = "0.18.1"
thiserror = "2.0.21"
# C / POSIX-only dependencies are unavailable on wasm32 (Zig builds the wasm
# module without oniguruma, and kitty shared-memory images need POSIX shm).
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
onig = "6.5.3"
ghostty-onig.workspace = true
# POSIX shm is not available on Windows (Zig returns `UnsupportedMedium`).
[target.'cfg(not(any(target_arch = "wasm32", windows)))'.dependencies]
rustix = { version = "1.1.5", features = ["shm", "fs"] }
[target.'cfg(any(target_vendor = "apple", windows))'.dependencies]
ghostty-os.workspace = true
[dev-dependencies]
ghostty-config.workspace = true
[lints]
workspace = true