claude-print/Cargo.toml
jedarden 4a38e8f6a3 Phase 2: implement PTY open and fork in pty.rs
Adds PtySpawner struct that calls openpty() for master/slave fds, forks,
and runs login_tty on the child side before it exits. Fixes nix feature
flag (pty module is gated by `term`, not a `pty` feature in nix 0.29).
Adds mock-claude workspace stub so the workspace resolves cleanly.

Unit test: fork_and_login_tty_does_not_panic passes (child exits 0).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 16:38:14 -04:00

35 lines
776 B
TOML

[workspace]
members = [".", "test-fixtures/mock-claude"]
[package]
name = "claude-print"
version = "0.1.0"
edition = "2021"
rust-version = "1.82"
description = "Drop-in replacement for `claude -p` that bills against the subscription pool via PTY"
license = "MIT"
[[bin]]
name = "claude-print"
path = "src/main.rs"
[dependencies]
clap = { version = "4.5.38", features = ["derive", "env"] }
anyhow = "1.0.98"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
thiserror = "2.0.12"
toml = "0.8.22"
nix = { version = "0.29", features = ["process", "signal", "fs", "ioctl", "term"] }
tempfile = "3.20"
libc = "0.2"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
panic = "abort"
[profile.release-musl]
inherits = "release"