aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model/src/workspace.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move features into potential_cfg_optionsJamie Cunliffe2021-06-211-4/+11
|
* Improve completion of cfg attributesJamie Cunliffe2021-06-211-0/+4
| | | | | | | | | | | | The completion of cfg will look at the enabled cfg keys when performing completion. It will also look crate features when completing a feature cfg option. A fixed list of known values for some cfg options are provided. For unknown keys it will look at the enabled values for that cfg key, which means that completion will only show enabled options for those.
* Implement a config override for the default #[cfg(test)] in cargo cratesJade2021-06-191-54/+70
| | | | | | | | Fixes crates which vanish when the 'test' cfg atom is set. Fix #7243. Fix #9203. Fix #7225.
* Fix libcore not being included in rust-lang/rust module treeJade2021-06-191-1/+15
| | | | | | | | | | | If you are opening libcore from rust-lang/rust as opposed to e.g. goto definition from some other crate which would use the sysroot instance of libcore, a `#![cfg(not(test))]` would previously have made all the code excluded from the module tree, breaking the editor experience. This puts in a slight hack that checks for the crate name "core" and turns off `#[cfg(test)]`.
* clippy::redudant_borrowMaan20032021-06-131-6/+6
|
* Add a FIXMEKirill Bulatov2021-05-241-0/+9
|
* Deal with todosKirill Bulatov2021-05-231-4/+14
|
* Drag detached files towards loadingKirill Bulatov2021-05-231-4/+69
|
* Draft detached files retrievalKirill Bulatov2021-05-231-0/+3
|
* Fix build script dependenciesJonas Schievink2021-05-121-11/+23
|
* Use Cargo target name as crate nameJonas Schievink2021-05-111-1/+4
|
* Discover rustc_cfg through unstable cargo optionsLukas Wirth2021-05-081-3/+4
|
* Clearer namingAleksey Kladov2021-04-061-5/+5
|
* Never run cargo check on the rustc sourceDaniel McNab2021-03-081-4/+1
|
* Only show directory nameDaniel McNab2021-03-081-1/+1
|
* Revert "Support disabling rustc build scripts"Daniel McNab2021-03-081-10/+3
| | | | This reverts commit ddce6bb282764692d53b719bff4c37e3512d4556.
* Support disabling rustc build scriptsDaniel McNab2021-03-081-3/+11
|
* Fix the commentDaniel McNab2021-03-071-4/+4
| | | | It's worse than I thought...
* Extract the large nested block into a functionDaniel McNab2021-03-071-72/+98
| | | | | Also add some more detailed comments Extract into function deleted the previous comments
* Require opt in to rustc_privateDaniel McNab2021-03-071-69/+69
| | | | | | This gives the advantage that A future extension would be to check for `feature(rustc_private)` instead
* Don't double analyse the same crateDaniel McNab2021-03-071-1/+6
|
* Update crate graph to only use subcrates of rustc_driverDaniel McNab2021-03-071-38/+38
|
* If a manual dependency exists, don't overwriteDaniel McNab2021-03-061-1/+8
| | | | | | | | This is a hack to work around miri being included in our analysis of rustc-dev Really, we should probably use an include set of the actual root libraries I'm not sure how those are determined however
* Implement opt-in (and opt-out) rustc_privateDaniel McNab2021-03-061-1/+5
|
* Allow automatically detect the rustc-src directory (fixes #3517).Benjamin Bouvier2021-02-131-1/+12
| | | | | If the configured rustcSource is set to "discover", try to automatically detect a source from the sysroot rustc directory.
* Async Loading outdir and proc-macroEdwin Cheng2021-01-281-10/+43
|
* Make logger-based debugging more pleasantAleksey Kladov2021-01-281-2/+3
|
* Refactor build script dataEdwin Cheng2021-01-221-11/+9
|
* Added defined_features in PackageDataEdwin Cheng2021-01-211-1/+1
|
* Avoid blocking the main loop when editing Cargo.tomlAleksey Kladov2021-01-181-61/+58
| | | | | | | | | | I've noticed a bunch of "main loop too long" warnings in console when typing in Cargo.toml. Profiling showed that the culprit is `rustc --print cfg` call. I moved it to the background project loading phase, where it belongs. This highlighted a problem: we generally use single `cfg`, while it really should be per crate.
* Add profile callAleksey Kladov2021-01-181-0/+1
|
* Add profile callAleksey Kladov2021-01-181-0/+3
|
* Report progress for cargo metadata and output-dirEdwin Cheng2021-01-071-8/+14
|
* Remove some redundant allocationsJeremy Kolb2020-12-121-1/+1
|
* Apply environment set by build scriptsJonas Schievink2020-12-071-0/+5
|
* Remove dummy ProcMacroClient in favor of OptionJonas Schievink2020-12-071-17/+22
|
* SimplifyAleksey Kladov2020-11-171-54/+50
|
* Make code more readableAleksey Kladov2020-11-171-186/+207
|
* MinorAleksey Kladov2020-11-171-4/+4
|
* SimplifyAleksey Kladov2020-11-171-16/+10
|
* Compress codeAleksey Kladov2020-11-171-64/+24
|
* simplifyAleksey Kladov2020-11-171-41/+32
|
* Remove dead codeAleksey Kladov2020-11-131-15/+0
|
* Cleanup workspace loading a tiny bitAleksey Kladov2020-11-131-18/+16
|
* Move tricky workspace logic to a separate moduleAleksey Kladov2020-11-131-0/+607