about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/cli/load_cargo.rs
AgeCommit message (Collapse)AuthorLines
2022-05-19simplifyJonas Schievink-2/+1
2022-01-14cleanup + detect num cpusJake Heinz-1/+1
2022-01-06feat: Add config to replace specific proc-macros with dummy expandersLukas Wirth-1/+2
2021-08-31minor: improve readabilityAleksey Kladov-4/+4
naming, layout & comments help!
2021-08-31internal: split database loading time in anaysis-stats into componentsAleksey Kladov-12/+9
2021-08-30switch `log` crate to `tracing`Dezhi Wu-1/+1
2021-08-22internal: remove unreasonable crate dependencyAleksey Kladov-4/+2
Proc macro expansion shouldn't know about salsa at all.
2021-08-22internal: reduce crate interdependenceAleksey Kladov-9/+13
I don't think there's anything wrong with project_model depending on proc_macro_api directly -- fundamentally, both are about gluing our pure data model to the messy outside world. However, it's easy enough to avoid the dependency, so why not. As an additional consideration, `proc_macro_api` now pulls in `base_db`. project_model should definitely not depend on that!
2021-08-01Make `LoadCargoConfig`, `fn load_workspace_at` & `fn load_workspace` public ↵Vincent Esche-6/+15
again
2021-07-19remove debug printsAleksey Kladov-2/+0
2021-07-18fix: potential bugs when build scripts do not match the current projectAleksey Kladov-15/+13
2021-07-18internal: simplify handling of the build scriptsAleksey Kladov-21/+16
2021-07-17internal: a bit more of cwd safety for flycheckAleksey Kladov-5/+5
2021-06-13clippy::redudant_borrowMaan2003-1/+1
2021-06-11Only prefill caches in the completion benchmarkKirill Bulatov-1/+5
2021-06-11Fix visibility issuesKirill Bulatov-5/+5
2021-06-11Prime caches on workspace loadKirill Bulatov-1/+3
2021-06-05Enable attribute macro expansion in `analysis-stats`Florian Diebold-0/+3
Before: ``` > $ rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 19.08s, 277minstr crates: 34, mods: 688, decls: 13202, fns: 10412 Item Collection: 16.21s, 76ginstr exprs: 290580, ??ty: 2508 (0%), ?ty: 1814 (0%), !ty: 947 Inference: 27.46s, 108ginstr Total: 43.67s, 184ginstr ``` After: ``` > $ ./target/release/rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 1.09s, 277minstr crates: 34, mods: 688, decls: 14790, fns: 11006 Item Collection: 18.20s, 78ginstr exprs: 297826, ??ty: 493 (0%), ?ty: 558 (0%), !ty: 342 Inference: 28.34s, 111ginstr Total: 46.54s, 190ginstr ```
2021-04-12feat: avoid checking the whole project during initial loadingAleksey Kladov-3/+7
2021-03-02Fix ProcMacroClient dropped too early in cliEdwin Cheng-4/+5
2021-02-16Split `pub fn cargo_load` into `pub fn load_workspace_at` and `pub fn ↵Vincent Esche-13/+26
load_workspace`
2021-02-12Fix slow tests sometimes failingFlorian Diebold-2/+6
In some situations we reloaded the workspace in the tests after having reported to be ready. There's two fixes here: 1. Add a version to the VFS config and include that version in progress reports, so that we don't think we're done prematurely; 2. Delay status transitions until after changes are applied. Otherwise the last change during loading can potentially trigger a workspace reload, if it contains interesting changes.
2021-02-08Consolidate `fn load_cargo(…)` parameters into `struct LoadCargoConfig ↵Vincent Esche-10/+17
{ … }`
2021-02-08Add `config: &CargoConfig` parameter to `fn load_cargo(…)`Vincent Esche-2/+3
2021-01-29Async Loading outdir and proc-macroEdwin Cheng-13/+23
2021-01-26Add config option to ignore directoriesAleksey Kladov-1/+1
2021-01-18Avoid blocking the main loop when editing Cargo.tomlAleksey Kladov-1/+1
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.
2021-01-08Report progress for cargo metadata and output-dirEdwin Cheng-0/+1
2020-12-09Fix "no value set for FileTextQuery(FileId(..))"Jonas Schievink-1/+1
2020-12-07Remove dummy ProcMacroClient in favor of OptionJonas Schievink-3/+3
2020-11-13Cleanup workspace loading a tiny bitAleksey Kladov-1/+0
2020-10-24Re-export base_db from ide_dbIgor Aleksanov-1/+1
2020-10-02Move ide::AnalysisChange -> base_db::ChangeAleksey Kladov-2/+2
This seems like a better factoring logically; ideally, clients shouldn't touch `set_` methods of the database directly. Additionally, I think this should remove the unfortunate duplication in fixture code.
2020-08-13Rename ra_ide -> ideAleksey Kladov-1/+1
2020-08-13Rename ra_db -> base_dbAleksey Kladov-1/+1
2020-08-13Rename ra_project_model -> project_modelPavan Kumar Sunkara-1/+1
2020-07-08Remove unwanted dependencyAleksey Kladov-2/+2
2020-06-26reduce visibilityAleksey Kladov-1/+1
2020-06-26Add new module for project loading stuffAleksey Kladov-1/+1
2020-06-25Unify styleAleksey Kladov-1/+1
2020-06-24Less error-prone namingAleksey Kladov-2/+2
2020-06-24Cleanup project.json deserializationAleksey Kladov-6/+5
2020-06-24Be more explicit about absolute paths at various placesAleksey Kladov-1/+1
2020-06-23New VFSAleksey Kladov-113/+53
2020-06-11Remove dead codeAleksey Kladov-4/+0
2020-06-10Reduce OUT_DIR special casingAleksey Kladov-19/+19
2020-06-08Remove default_cfg_options, pass target instead so it can be used for ↵Paul Daniel Faria-16/+4
building cargo workspaces
2020-06-07Change management of test cfg to better support json projectsPaul Daniel Faria-1/+0
2020-06-03Groundwork for specifying the set of projects via configAleksey Kladov-1/+2
2020-06-03Rename ProjectRoot -> ProjectManifestAleksey Kladov-2/+2