|
3 | 3 | //! The directory layout is a little tricky at times, hence a separate file to
|
4 | 4 | //! house this logic. The current layout looks like this:
|
5 | 5 | //!
|
6 |
| -//! # This is the root directory for all output, the top-level package |
7 |
| -//! # places all of its output here. |
8 |
| -//! target/ |
| 6 | +//! ```ignore |
| 7 | +//! # This is the root directory for all output, the top-level package |
| 8 | +//! # places all of its output here. |
| 9 | +//! target/ |
9 | 10 | //!
|
10 |
| -//! # This is the root directory for all output of *dependencies* |
11 |
| -//! deps/ |
| 11 | +//! # This is the root directory for all output of *dependencies* |
| 12 | +//! deps/ |
12 | 13 | //!
|
13 |
| -//! # This is the location at which the output of all custom build |
14 |
| -//! # commands are rooted |
15 |
| -//! native/ |
| 14 | +//! # This is the location at which the output of all custom build |
| 15 | +//! # commands are rooted |
| 16 | +//! native/ |
16 | 17 | //!
|
17 |
| -//! # Each package gets its own directory for where its output is |
18 |
| -//! # placed. We can't track exactly what's getting put in here, so |
19 |
| -//! # we just assume that all relevant output is in these |
20 |
| -//! # directories. |
21 |
| -//! $pkg1/ |
22 |
| -//! $pkg2/ |
23 |
| -//! $pkg3/ |
| 18 | +//! # Each package gets its own directory for where its output is |
| 19 | +//! # placed. We can't track exactly what's getting put in here, so |
| 20 | +//! # we just assume that all relevant output is in these |
| 21 | +//! # directories. |
| 22 | +//! $pkg1/ |
| 23 | +//! $pkg2/ |
| 24 | +//! $pkg3/ |
24 | 25 | //!
|
25 |
| -//! # Hidden directory that holds all of the fingerprint files for all |
26 |
| -//! # packages |
27 |
| -//! .fingerprint/ |
| 26 | +//! # Hidden directory that holds all of the fingerprint files for all |
| 27 | +//! # packages |
| 28 | +//! .fingerprint/ |
28 | 29 | //!
|
29 |
| -//! # This is a temporary directory as part of the build process. When a |
30 |
| -//! # build starts, it initially moves the old `deps` directory to this |
31 |
| -//! # location. This is done to ensure that there are no stale artifacts |
32 |
| -//! # lying around in the build directory which may cause a build to |
33 |
| -//! # succeed where it would fail elsewhere. |
34 |
| -//! # |
35 |
| -//! # If a package is determined to be fresh, its files are moved out of |
36 |
| -//! # this directory and back into `deps`. |
37 |
| -//! old-deps/ |
| 30 | +//! # This is a temporary directory as part of the build process. When a |
| 31 | +//! # build starts, it initially moves the old `deps` directory to this |
| 32 | +//! # location. This is done to ensure that there are no stale artifacts |
| 33 | +//! # lying around in the build directory which may cause a build to |
| 34 | +//! # succeed where it would fail elsewhere. |
| 35 | +//! # |
| 36 | +//! # If a package is determined to be fresh, its files are moved out of |
| 37 | +//! # this directory and back into `deps`. |
| 38 | +//! old-deps/ |
38 | 39 | //!
|
39 |
| -//! # Similar to old-deps, this is where all of the output under |
40 |
| -//! # `target/` is moved at the start of a build. |
41 |
| -//! old-root/ |
| 40 | +//! # Similar to old-deps, this is where all of the output under |
| 41 | +//! # `target/` is moved at the start of a build. |
| 42 | +//! old-root/ |
42 | 43 | //!
|
43 |
| -//! # Same as the two above old directories |
44 |
| -//! old-native/ |
45 |
| -//! old-fingerprint/ |
| 44 | +//! # Same as the two above old directories |
| 45 | +//! old-native/ |
| 46 | +//! old-fingerprint/ |
| 47 | +//! ``` |
46 | 48 |
|
47 | 49 | use std::io;
|
48 | 50 | use std::io::{fs, IoResult};
|
|
0 commit comments