cosca 0.9.0

Unified cross-platform subprocess management: spawning, stdio, process trees, stable identity, and elevation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

/// Which executable a front elevates in place of the program.
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub(crate) enum ShimChoice {
    /// No shim: the front runs the program itself.
    #[default]
    Direct,
    /// The host binary, re-executed as the shim.
    HostExecutable,
    /// A binary whose `main` calls `cosca::init()`.
    Executable(PathBuf),
}

#[cfg(test)]
#[path = "choice_tests.rs"]
mod choice_tests;