mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
82ccb6582a
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.
25 lines
870 B
TOML
25 lines
870 B
TOML
[package]
|
|
authors = ["The Rust Project Developers"]
|
|
name = "rustc_lint"
|
|
version = "0.0.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
tracing = "0.1"
|
|
unicode-security = "0.0.5"
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
|
|
rustc_attr = { path = "../rustc_attr" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_target = { path = "../rustc_target" }
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_feature = { path = "../rustc_feature" }
|
|
rustc_index = { path = "../rustc_index" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_trait_selection = { path = "../rustc_trait_selection" }
|
|
rustc_parse_format = { path = "../rustc_parse_format" }
|