summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/project-model
AgeCommit message (Collapse)AuthorLines
2025-06-13`cargo upgrade`Lukas Wirth-4/+6
2025-06-05Deduplicate code in proc-macro-srvLukas Wirth-6/+0
2025-05-16Merge pull request #19807 from Veykril/lw-qyynkqysuyuyLukas Wirth-1/+6
fix: Don't overwrite `RUSTUP_TOOLCHAIN` if it is already set
2025-05-16fix: Don't overwrite `RUSTUP_TOOLCHAIN` if it is already setLukas Wirth-1/+6
2025-05-05Support environment variable CARGO_MANIFEST_PATH.Victor-0/+16
2025-05-01remove a couple of clonesMatthias Krüger-2/+2
2025-04-21Merge pull request #19644 from ChayimFriedman2/const-symsLukas Wirth-23/+21
internal: Make predefined symbols `const` instead of `static`
2025-04-21Remove unnecessary predefined symbol clonesChayim Refael Friedman-23/+21
Now that they're const it's no longer needed. Nothing manual was performed: only a regexp search of `sym::([\w][\w\d]*)\.clone\(\)` and replace by `sym::$1`.
2025-04-19allow using `null` to unset an environment variablejyn-56/+45
this makes three changes: - all callsites of `toolchain::command` are changed to use `command(path, extra_env)`, instead of manually adding the env after the fact. - all `map<str, str>` are changed to `map<str, option<str>>`. - `command` checks for None and calls `env_remove` if so. this caught several places where environment variables weren't being propagated: - when running `rustc --print=target-libdir` - when running `cargo rustc -- --print=target-spec-json` - when running the custom DiscoverLinkedProjects config. I *think* this is for use with non-cargo build systems, so I didn't change it.
2025-04-06fix: Fix `format_args` lowering for >=1.87Lukas Wirth-0/+1
2025-04-04feat(project-model): provide flag for no depsPrajwal S N-2/+11
A Cargo project can now be built without any dependency metadata being fetched. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-03-29fix: Fix, clarify and require a value for `proc_macro_cwd` of `CrateData`Lukas Wirth-31/+84
2025-03-25ci: Require miri stepLukas Wirth-5/+1
2025-03-23chore: Bump dependenciesLukas Wirth-12/+21
2025-03-17Merge pull request #19005 from ↵HKalbasi-0/+17
duncanawoods/18955---fix-running-tests-for-packages-with-multiple-targets fix testing packages with multiple targets
2025-03-16refactor: Remove unnecessary `Arc`Lukas Wirth-5/+5
2025-03-16refactor: Remove `CrateGraphBuilder::iter_mut`Lukas Wirth-1290/+73
2025-03-15cargo fmtBenjaminBrienen-39/+29
2025-03-15fix clippy::doc_overindented_list_itemsBenjaminBrienen-2/+1
2025-03-12Salsify the crate graphChayim Refael Friedman-1451/+1885
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-07Move project MSRV back to 1.78Lukas Wirth-6/+1144
2025-03-06Change `%e` to `?e` to include detailed error messageArthur Baars-2/+1
2025-03-05Improve tracing log format in cargo_workspace.rsArthur Baars-1/+3
2025-03-05Add warning and debug information when `cargo metadata` failsArthur Baars-1/+16
The errors are silently dropped elsewhere, which make it really hard to debug issues due to dependency download failures.
2025-03-03Merge pull request #19243 from Veykril/push-qrrqsywkwyzpLukas Wirth-7/+5
Allow unsetting default cfgs
2025-02-27Allow unsetting default cfgsLukas Wirth-7/+5
2025-02-27enable doctestBenjaminBrienen-1/+0
2025-02-27fix testing for packages with multiple targetsduncan-0/+17
fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages with multiple targets fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages with multiple targets fix bad merge replace TargetKind::fmt with TargetKind::as_cargo_target to clarify intention dedupulicate requested test runs replace ParseFromLine with CargoParser formatting - remove trailing space formatting for rustfmt CI
2025-02-27Fix sysroot crate-graph construction not mapping crate-ids for proc-macrosLukas Wirth-2/+5
2025-02-26Drop support for stitched sysrootDavid Richey-1168/+12
2025-02-26Allow rust-project.json to specify sysroot workspaceDavid Richey-61/+135
2025-02-22Allow "package/feature" format feature flagShirayama Kazatsuyu-1/+3
2025-02-22Switch back to RUST_SRC_PATHLaurențiu Nicola-8/+6
2025-02-17Use correct working directory for non-workspace proc-macro executionMehul Arora-4/+116
2025-02-16Set `RUSTUP_TOOLCHAIN` when loading sysroot workspaceLukas Wirth-2/+6
2025-02-12Apply cfg.setTest to json projectsDavid Richey-43/+49
2025-02-12Rename sysroot src/lib related thingsLukas Wirth-100/+117
2025-02-12Spawn toolchain querying processes in parallelLukas Wirth-110/+217
2025-02-04Expose symbol of `CrateName`Lukas Wirth-2/+2
2025-01-24Explicitly add buildfiles when constructing ProjectFoldersDavid Richey-21/+20
2025-01-24Merge pull request #18994 from Wilfred/failed_rustc_cfg_as_warningLukas Wirth-1/+1
internal: Treat cfg fetching failures as a warning
2025-01-21manual: Document all rust-project.json fieldsWilfred Hughes-1/+1
Ensure that all the fields that rust-analyzer understands are in the manual, they all have doc comments, and they use consistent punctuation (`;` rather than mixing `,` and `;`). Whilst we're here, fix the `sysroot_src` example and add 2024 as a legal value for Rust edition.
2025-01-21internal: Treat cfg fetching failures as a warningWilfred Hughes-1/+1
If the user doesn't have rustc on $PATH, rust-analyzer won't be able to run `rustc --print cfg`. This isn't really an error, as rust-analyzer can still proceed without it. This is particularly noticeable when loading crates defined in a rust-project.json. Until the configuration is loaded, the opened files are briefly treated as detached files and users see this error. Environments with rust-project.json generally have a sysroot and rustc elsewhere, so the error confuses users.
2025-01-18fix: `cargo rustc --print` needs `unstable-options`Lukas Wirth-1/+1
2025-01-16Partially back out "fix: Fix sourceroot construction for virtual manifests"Lukas Wirth-9/+4
2025-01-08Add config setting which allows adding additional include paths to the VFS.Nicholas Rishel-3/+34
2025-01-07Merge pull request #18867 from Veykril/push-ntmxlropxkrrLukas Wirth-94/+183
internal: target-triple -> target-tuple + version fetching cleanup
2025-01-07Add some smoke tests to toolchain_infoLukas Wirth-23/+129
2025-01-07Align toolchain version fetching with other toolchain info queryingLukas Wirth-110/+93
Fix --target flag argument order in rustc_cfg fetching
2025-01-07target-triple -> target-tupleLukas Wirth-9/+9