Adds common/output.rs: a process-global JSON-lines emitter for non-interactive front-ends. With --output json, host and viewer emit one JSON object per line on stdout (ticket, host_info, viewer_count, capture start/stop, viewer_refused, connected), flushed per line; the human banner and tracing logs stay on stderr so the two never interleave. No-op when the flag is absent, so call sites emit unconditionally. This is the shell-out counterpart to an in-process event channel: the upcoming --gui front-end re-execs this binary as `pixelpass --host --output json` and parses these lines to drive its window. serde_json was already in the tree from the bandwidth pre-flight. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
10 lines
145 B
Rust
10 lines
145 B
Rust
pub mod alpn;
|
|
pub mod bandwidth;
|
|
pub mod config;
|
|
pub mod deps;
|
|
pub mod display;
|
|
pub mod output;
|
|
pub mod process;
|
|
pub mod signal;
|
|
pub mod tunnel;
|