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
//! Captures the absolute path of the doido workspace root and injects it into a
//! rustc env var so generated apps can depend on the local `doido-*` crates by
//! path (local development workflow) instead of crates.io releases.
//!
//! It also decides whether generated apps should use `path` or `version`
//! dependencies: when this crate is built inside the doido workspace (the
//! sibling `doido` crate is on disk) apps get `path` deps so they build against
//! the in-tree framework; once `doido-generators` is packaged/published the
//! siblings are gone, so apps get `version` deps that resolve from crates.io.
use PathBuf;