Skip to main content

rightkit_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
3mod health;
4mod owned;
5mod process_handle;
6#[cfg(unix)]
7mod process_unix;
8#[cfg(windows)]
9mod process_windows;
10mod restart;
11#[cfg(windows)]
12mod spawn_windows;
13mod stall;
14mod stderr_tail;
15#[cfg(windows)]
16pub mod windows_job;
17
18pub use health::{HealthOutcome, HealthPolicy, HealthProbe, HealthTracker};
19pub use owned::{
20    AdoptedProcess, JobAssignmentFailure, JobAssignmentMode, OwnedChild, OwnedCommand,
21    RawHandleOrFd, ReapOutcome, TerminationOptions, UnixContainment, WaitOutcome,
22    DEFAULT_ENV_ALLOWLIST,
23};
24pub use process_handle::ProcessHandle;
25pub use restart::{
26    Generation, RestartMode, RestartOutcome, RestartPermit, RestartPolicy, RestartTracker,
27};
28#[cfg(windows)]
29pub use spawn_windows::{WindowsChild, WindowsSpawnConfig, WindowsStdio};
30pub use stall::{Ack, Cooldown, StallConfig, StallEvent, StallWatchdog};
31pub use stderr_tail::StderrTail;
32#[cfg(windows)]
33pub use windows_job::{WindowsJob, DEFAULT_ACTIVE_PROCESS_LIMIT};