Change Cargo's own dep-file format
authorAlex Crichton <alex@alexcrichton.com>
Fri, 8 Dec 2017 15:43:45 +0000 (07:43 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 12 Dec 2017 19:00:07 +0000 (11:00 -0800)
commitf688e9c2f55f196547fd24ff953208d2c9fbb6f4
treefb8cab4b28d4dc8341a433574e4aa9fa4dd937e3
parent8647a87d29fdd046592faed5f870aa7b2141cc24
Change Cargo's own dep-file format

This commit alters the format of the dependency info that Cargo keeps track of
for each crate. In order to be more resilient against directory renames and such
Cargo will now postprocess the compiler's dep-info output and serialize into its
own format. This format is intended to primarily list relative paths *to the
root of the relevant package* rather than absolute or relative to some other
location. If paths aren't actually relative to the package root they're still
stored as absolute, but there's not much we can do about that!
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/cargo_rustc/output_depinfo.rs