Prajwal S N
865681d779
feat(project-model): provide flag for no deps
...
A Cargo project can now be built without any dependency metadata being fetched.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04 18:57:10 +05:30
Lukas Wirth
faf1b49a9a
fix: Fix, clarify and require a value for proc_macro_cwd
of CrateData
2025-03-29 08:08:48 +01:00
Lukas Wirth
b5eedad8e3
refactor: Remove unnecessary Arc
2025-03-16 10:27:48 +01:00
Lukas Wirth
7edfeb9674
refactor: Remove CrateGraphBuilder::iter_mut
2025-03-16 10:24:15 +01:00
BenjaminBrienen
7535bb4661
cargo fmt
2025-03-15 21:32:01 +01:00
Chayim Refael Friedman
c94e9efbef
Salsify the crate graph
...
I.e. make it not one giant input but multiple, for incrementality and decreased memory usage for Salsa 3 reasons.
2025-03-12 21:02:30 +02:00
Lukas Wirth
0424e2e2bf
Move project MSRV back to 1.78
2025-03-07 07:51:53 +01:00
Lukas Wirth
b685ada098
Merge pull request #19243 from Veykril/push-qrrqsywkwyzp
...
Allow unsetting default cfgs
2025-03-03 11:42:40 +00:00
Lukas Wirth
5e18ad0770
Allow unsetting default cfgs
2025-02-27 17:34:29 +01:00
Lukas Wirth
d81341372b
Fix sysroot crate-graph construction not mapping crate-ids for proc-macros
2025-02-27 13:20:19 +01:00
David Richey
18a678e693
Drop support for stitched sysroot
2025-02-26 14:18:52 -06:00
David Richey
ca5a35e97f
Allow rust-project.json to specify sysroot workspace
2025-02-26 14:18:48 -06:00
Mehul Arora
3a31741627
Use correct working directory for non-workspace proc-macro execution
2025-02-17 10:36:32 -05:00
David Richey
a297d438bc
Apply cfg.setTest to json projects
2025-02-12 14:05:34 -06:00
Lukas Wirth
172a504b56
Rename sysroot src/lib related things
2025-02-12 16:51:27 +01:00
Lukas Wirth
8a8ff99273
Spawn toolchain querying processes in parallel
2025-02-12 16:24:49 +01:00
David Richey
c0c7d5a2e1
Explicitly add buildfiles when constructing ProjectFolders
2025-01-24 09:59:06 -06:00
Lukas Wirth
52a6f430ef
Partially back out "fix: Fix sourceroot construction for virtual manifests"
2025-01-16 10:02:26 +01:00
Nicholas Rishel
1f9686993a
Add config setting which allows adding additional include paths to the VFS.
2025-01-08 10:57:46 -08:00
Lukas Wirth
619af1871b
Merge pull request #18867 from Veykril/push-ntmxlropxkrr
...
internal: target-triple -> target-tuple + version fetching cleanup
2025-01-07 13:46:58 +00:00
Lukas Wirth
59c8e27acc
Add some smoke tests to toolchain_info
2025-01-07 14:33:24 +01:00
Lukas Wirth
b8a0488740
Align toolchain version fetching with other toolchain info querying
...
Fix --target flag argument order in rustc_cfg fetching
2025-01-07 14:30:46 +01:00
Lukas Wirth
2ac803ec71
target-triple -> target-tuple
2025-01-07 14:25:43 +01:00
Lukas Wirth
86d35a55a6
Merge pull request #18788 from Veykril/push-zxystwnotuvq
...
Remove `rust-analyzer.cargo.sysrootQueryMetadata` config again
2025-01-07 13:14:29 +00:00
Lukas Wirth
f1c0d176f3
Remove rust-analyzer.cargo.sysrootQueryMetadata
config again
2025-01-07 14:00:22 +01:00
Bogdan Mircea
4382331a36
project-model: fix JSON project PackageRoot buildfile inclusion
2025-01-07 13:47:17 +02:00
lucasholten
c46e9c48b0
Remove CARGO_RUSTC_CURRENT_DIR
2024-12-31 15:47:29 +01:00
Lukas Wirth
fd4635c99c
fix: Populate cargo config env vars for crates
2024-12-31 14:32:35 +01:00
Lukas Wirth
f5fb2b9e9f
Force a current dir to be supplied for rustc info fetching
2024-12-29 13:26:04 +01:00
Lukas Wirth
8d2b12fe0e
Split out ProjectWorkspace::load_cargo
2024-12-29 12:54:41 +01:00
Lukas Wirth
5ce14b0439
Enforce a current directory being set for spawned commands
2024-12-29 12:51:13 +01:00
Lukas Wirth
0f95e60da3
Cleanup toolchain info fetching
2024-12-29 12:25:51 +01:00
Lukas Wirth
029261f9cc
Cleanup target fetching for cargo metadata
2024-12-24 17:49:07 +01:00
Lukas Wirth
ab46e97188
fix: Fix sourceroot construction for virtual manifests
2024-12-12 12:58:18 +01:00
Lukas Wirth
7085328185
Remove patch sysroot cfg-if hack
2024-12-09 11:42:51 +01:00
David Richey
3c98b98ca7
Re-add rust-analyzer.cargo.sysrootQueryMetadata
2024-11-18 16:29:33 -06:00
Lukas Wirth
e4a6efb9e0
internal: Improve proc-macro error msg for failed build scripts
2024-10-24 13:45:11 +02:00
David Richey
eded3a8e29
Fix panic when json project has relative buildfile paths
2024-10-12 02:25:40 -05:00
Chayim Refael Friedman
4a06675e9c
Gate #[test]
expansion under cfg(test)
.
...
This will mean users opting to not activate `cfg(test)` will lose IDE experience on them, which is quite unfortunate, but this is unavoidable if we want to avoid false positives on e.g. diagnostics. The real fix is to provide IDE experience even for cfg'ed out code, but this is out of scope for this PR.
2024-09-30 00:12:45 +03:00
Chayim Refael Friedman
4ea09dd9f6
Provide an config option to not set cfg(test)
2024-09-30 00:12:45 +03:00
David Richey
85ca217765
Include buildfiles in vfs
2024-09-26 12:54:55 -04:00
Lukas Wirth
10ada02019
Pass all-targets for build scripts in more cli commands
...
Without this, build scripts don't run for tests and as such any proc-macros in dev-deps fail to resolve
2024-09-25 08:23:09 +02:00
Lukas Wirth
8905f86d8a
Remove crate graph deduplication logic
2024-09-11 11:38:42 +02:00
Lukas Wirth
2e2f798a74
minor: Downgrade cyclic deps error to warning
2024-09-01 10:02:41 +02:00
bors
06a40a61b0
Auto merge of #17973 - Veykril:proc-macro-curr-dir, r=Veykril
...
Expand proc-macros in workspace root, not package root
Should fix https://github.com/rust-lang/rust-analyzer/issues/17748 . The approach is generally not perfect though as rust-project.json projects don't benefit from this (still, nothing changes in that regard)
2024-08-27 11:53:04 +00:00
Lukas Wirth
9a47e6f2c8
Expand proc-macros in workspace root, not package root
2024-08-27 13:40:24 +02:00
Lukas Wirth
191949eabe
fix: Fix metadata retrying eating original errors
2024-08-25 09:28:47 +02:00
Lukas Wirth
3c4cdbbd1a
Improve documentation for InvocationStrategy
2024-08-19 14:23:05 +02:00
Lukas Wirth
07c1b83e98
feat: Make rust-analyzer work partially when missing an internet connection
2024-08-17 19:14:46 +02:00
Lukas Wirth
d2fe906a62
Remove unnecessary CfgFlag definition in project-model
2024-08-07 14:27:59 +02:00