1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use cratecanonicalize_or_self;
use crate;
use ;
/// Check if a task needs a permit from the semaphore
/// Only shell/script tasks execute external commands and need a concurrency slot.
/// Orchestrator-only tasks (pure groups of sub-tasks) do not.
pub
/// Whether this task starts other tasks from its `run` entries.
///
/// Such a task produces no output of its own — `task_needs_permit` is false, and
/// the `Finished in` line is gated on the same condition — but keep-order still
/// needs a slot for it, to anchor the blocks of the tasks it injects at the
/// position the task itself was declared in.
pub
/// Whether keep-order should reserve an output slot for this task.
///
/// Tasks that produce output, plus the ones that inject other tasks: those
/// produce nothing themselves but anchor their children's blocks at their own
/// declared position. A task that only aggregates `depends` gets neither and
/// stays out — it finishes after everything it waits on, and only the front
/// entry of the buffer map may stream, so its empty slot would hold the live
/// stream for the whole run.
pub
/// Canonicalize a path for use as cache key
/// Falls back to original path if canonicalization fails
pub