char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somrearrange libs into lib and extensions into extsf4a0f5b

main
999 B28 linesraw
1#[cfg(any(target_os = "linux", target_os = "macos", windows))]
2mod registry;
3#[cfg(not(any(target_os = "linux", target_os = "macos", windows)))]
4#[path = "unsupported.rs"]
5mod registry;
6#[cfg(any(target_os = "linux", target_os = "macos", windows))]
7use avril_subprocess as sys;
8
9mod signals;
10
11#[cfg(not(any(target_os = "linux", target_os = "macos", windows)))]
12pub use registry::Tree;
13pub use registry::init;
14#[cfg(any(target_os = "linux", target_os = "macos", windows))]
15pub use registry::supervision::Tree;
16
17/// Which process-wide signal duties the subprocess supervisor takes on.
18/// `Run` installs an interrupt handler; `Serve` and `Repl` leave interrupt
19/// to their own handlers (serve's shutdown, the REPL's eval interrupt).
20/// Terminate fate belongs to whoever claims it (serve's CLI listener); on
21/// unclaimed deliveries the supervisor stops children, waits briefly, then
22/// dies like the default disposition.
23#[derive(Clone, Copy)]
24pub enum SignalMode {
25    Run,
26    Serve,
27    Repl,
28}