File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed
src/tools/rust-analyzer/crates/project-model/src Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1616//! * Lowering of concrete model to a [`base_db::CrateGraph`]
1717
1818pub mod project_json;
19- pub mod toolchain_info;
19+ pub mod toolchain_info {
20+ pub mod rustc_cfg;
21+ pub mod target_data_layout;
22+ pub mod target_triple;
23+
24+ use std:: path:: Path ;
25+
26+ use crate :: { ManifestPath , Sysroot } ;
27+
28+ #[ derive( Copy , Clone ) ]
29+ pub enum QueryConfig < ' a > {
30+ /// Directly invoke `rustc` to query the desired information.
31+ Rustc ( & ' a Sysroot , & ' a Path ) ,
32+ /// Attempt to use cargo to query the desired information, honoring cargo configurations.
33+ /// If this fails, falls back to invoking `rustc` directly.
34+ Cargo ( & ' a Sysroot , & ' a ManifestPath ) ,
35+ }
36+ }
2037
2138mod build_dependencies;
2239mod cargo_workspace;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ //! Functionality to discover the current build target(s).
12use std:: path:: Path ;
23
34use anyhow:: Context ;
You can’t perform that action at this time.
0 commit comments