rust/crates/project-model/src
Chase Douglas 2826eb51aa Don't build dependencies when retrieving target data layout
`cargo rustc -- <args>` first builds dependencies then calls `rustc <args>` for the current package. Here, we don't want to build dependencies, we just want to call `rustc --print`. An unstable `cargo rustc` `--print` command bypasses building dependencies first. This speeds up execution of this code path and ensures RA doesn't recompile dependencies with the `RUSTC_BOOTSRAP=1` env var flag set.

Note that we must pass `-Z unstable-options` twice, first to enable the `cargo` unstable `--print` flag, then later to enable the unstable `rustc` `target-spec-json` print request.
2024-02-20 19:16:55 -08:00
..
build_scripts.rs Drop RUSTC_BOOTSTRAP env var when building build scripts 2024-02-20 16:42:20 -08:00
cargo_workspace.rs Auto merge of #16247 - Veykril:opqueues, r=Veykril 2024-02-14 14:33:16 +00:00
cfg_flag.rs project-model: Fix warnings about clippy str_to_string rule 2024-02-10 01:00:40 +09:00
lib.rs project-model: Fix warnings about clippy str_to_string rule 2024-02-10 01:00:40 +09:00
manifest_path.rs explicit_auto_deref 2024-01-19 17:31:01 +01:00
project_json.rs CrateOrigin::Local means local to the project workspace, not cargo workspace 2024-02-16 16:28:17 +01:00
rustc_cfg.rs fix: Set RUSTUP_TOOLCHAIN and invoke the proxies instead of directly invoking sysroot binaries 2024-02-14 15:13:45 +01:00
sysroot.rs fix: Set RUSTUP_TOOLCHAIN and invoke the proxies instead of directly invoking sysroot binaries 2024-02-14 15:13:45 +01:00
target_data_layout.rs Don't build dependencies when retrieving target data layout 2024-02-20 19:16:55 -08:00
tests.rs Move dedup-dev-deps tests into rust-analyzer crate 2024-02-16 15:47:40 +01:00
workspace.rs internal: Fetch toolchain and datalayout for DetachedFiles 2024-02-20 10:40:39 +01:00