rust/compiler/rustc_metadata/src
Jeremy Fitzhardinge 82ccb6582a Add --extern-loc to augment unused crate dependency diagnostics
This allows a build system to indicate a location in its own dependency
specification files (eg Cargo's `Cargo.toml`) which can be reported
along side any unused crate dependency.

This supports several types of location:
 - 'json' - provide some json-structured data, which is included in the json diagnostics
     in a `tool_metadata` field
 - 'raw' - emit the provided string into the output. This also appears as a json string in
     `tool_metadata`.

If no `--extern-location` is explicitly provided then a default json entry of the form
`"tool_metadata":{"name":<cratename>,"path":<cratepath>}` is emitted.
2021-02-07 14:54:20 -08:00
..
dynamic_lib
rmeta Encode less consts. 2021-02-04 18:02:14 +01:00
creader.rs Add --extern-loc to augment unused crate dependency diagnostics 2021-02-07 14:54:20 -08:00
dependency_format.rs
dynamic_lib.rs
foreign_modules.rs Remove ForeignMod struct. 2020-11-26 21:32:27 +01:00
lib.rs Stabilise then 2020-11-22 13:45:14 +00:00
link_args.rs Remove ForeignMod struct. 2020-11-26 21:32:27 +01:00
locator.rs Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
native_libs.rs Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00