syd 3.54.1

rock-solid application kernel
Documentation
//
// Syd: rock-solid application kernel
// src/bins/mod.rs: Binary entry points for multicall support.
//
// Copyright (c) 2026 Ali Polatel <alip@chesswob.org>
//
// SPDX-License-Identifier: GPL-3.0

//! Binary entry points for multicall support.
//!
//! This module contains the core logic for Syd's utility binaries,
//! extracted so they can be used both as standalone binaries and
//! as subcommands of a multicall binary.

use std::sync::OnceLock;

use nix::unistd::Pid;

/// PTY to STDIO bidirectional forwarder (syd-pty).
pub mod pty;
/// SOCKS Proxy Forwarder (syd-tor).
pub mod tor;

// PID of syd-pty(1), set once during pty init.
pub(crate) static SYD_PID_PTY: OnceLock<Pid> = OnceLock::new();

// PID of syd-tor(1), set once during tor init.
pub(crate) static SYD_PID_TOR: OnceLock<Pid> = OnceLock::new();