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 16
16
//! * Lowering of concrete model to a [`base_db::CrateGraph`]
17
17
18
18
pub 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
+ }
20
37
21
38
mod build_dependencies;
22
39
mod 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).
1
2
use std:: path:: Path ;
2
3
3
4
use anyhow:: Context ;
You can’t perform that action at this time.
0 commit comments