Skip to main content

rightkit_child_process/
lib.rs

1//! `OwnedCommand::inherit_handles_only` restricts inheritance to caller handles/fds plus stdio; Windows requires `windows_spawn_config` for opaque Command settings.
2
3#[cfg(unix)]
4mod exit_watch;
5mod foreign;
6mod health;
7#[cfg(unix)]
8mod identity;
9#[cfg(all(test, unix))]
10mod identity_tests;
11mod owned;
12mod process_handle;
13#[cfg(unix)]
14mod process_unix;
15#[cfg(windows)]
16mod process_windows;
17mod restart;
18pub mod reveal;
19#[cfg(windows)]
20mod spawn_windows;
21mod stall;
22mod stderr_tail;
23#[cfg(unix)]
24mod unix_child;
25mod usage;
26#[cfg(windows)]
27pub mod windows_job;
28
29pub use foreign::{
30    sweep, sweep_descendants, AdoptedIdentity, AdoptedSignal, IdentityCheck, SignalResult,
31    StartToken, SweepReport,
32};
33pub use health::{HealthOutcome, HealthPolicy, HealthProbe, HealthTracker};
34pub use owned::{
35    AdoptedProcess, JobAssignmentFailure, JobAssignmentMode, OwnedChild, OwnedCommand,
36    RawHandleOrFd, ReapOutcome, TerminationOptions, UnixContainment, WaitOutcome,
37    DEFAULT_DROP_REAP_TIMEOUT, DEFAULT_ENV_ALLOWLIST,
38};
39pub use process_handle::ProcessHandle;
40pub use restart::{
41    ConsecutiveFailures, Generation, RestartMode, RestartOutcome, RestartPermit, RestartPolicy,
42    RestartTracker,
43};
44#[cfg(windows)]
45pub use spawn_windows::{with_windows_spawn_lock, WindowsChild, WindowsSpawnConfig, WindowsStdio};
46pub use stall::{Ack, Cooldown, StallConfig, StallEvent, StallWatchdog};
47pub use stderr_tail::StderrTail;
48#[cfg(unix)]
49pub use unix_child::UnixChild;
50pub use usage::{
51    observe_idle, process_usage, BudgetLabels, IdleObservation, ProcessUsage, UsageRates,
52};
53#[cfg(windows)]
54pub use windows_job::{WindowsJob, DEFAULT_ACTIVE_PROCESS_LIMIT};