phantom reveal uses libc::isatty() to guard against piping secrets into non-interactive contexts. libc is Unix-only.
Location
phantom-cli/src/commands/reveal.rs:23-26
Fix
Use std::io::IsTerminal (stable since Rust 1.70) — no new dependency needed:
use std::io::IsTerminal;
if !std::io::stdout().is_terminal() { /* ... */ }
Severity
Blocker — will not compile on Windows.
Tracker: #1
phantom revealuseslibc::isatty()to guard against piping secrets into non-interactive contexts.libcis Unix-only.Location
phantom-cli/src/commands/reveal.rs:23-26Fix
Use
std::io::IsTerminal(stable since Rust 1.70) — no new dependency needed:Severity
Blocker — will not compile on Windows.
Tracker: #1