aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model
Commit message (Collapse)AuthorAgeFilesLines
* Merge #5596bors[bot]2020-07-301-11/+18
|\ | | | | | | | | | | | | | | | | | | 5596: Add checkOnSave.noDefaultFeatures and correct, how we handle some cargo flags. r=clemenswasser a=clemenswasser This PR adds the `rust-analyzer.checkOnSave.noDefaultFeatures` option and fixes the handling of `cargo.allFeatures`, `cargo.noDefaultFeatures` and `cargo.features`. Fixes: #5550 Co-authored-by: Clemens Wasser <[email protected]>
| * ra_project_model: Fix configuration of featuresClemens Wasser2020-07-301-11/+18
| | | | | | | | | | | | | | | | | | This commit fixes the handling of user-defined configuration of some cargo options. Previously you could either specify `--all-features`, `--no-default-features` or `--features`. Now you can specify either `--all-features` or `--no-default-features` and `--features`. This commit also corrects the `--features` command-line argument creation inside of `load_extern_resources`.
* | Use split_once polyfillAleksey Kladov2020-07-301-2/+2
| |
* | Update sysroot cratesLaurențiu Nicola2020-07-301-31/+17
|/
* Add workaround for changing sysroot pathsLaurențiu Nicola2020-07-301-8/+34
|
* cargo_metadata 0.11.1 and cargo updatekjeremy2020-07-291-1/+1
|
* Require quotes around key-value cfg flags in rust-project.jsonAleksey Kladov2020-07-235-70/+106
| | | | This matches rustc command-line flags, as well as the build.rs format.
* Merge #5505bors[bot]2020-07-231-4/+4
|\ | | | | | | | | | | | | | | | | | | | | 5505: Cleanup CFG API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Cleanup CFG APIAleksey Kladov2020-07-231-4/+4
| |
* | More Rustic API for EnvAleksey Kladov2020-07-211-4/+1
| |
* | Replace OUT_DIR in project.json with general envAleksey Kladov2020-07-212-9/+7
| | | | | | | | OUT_DIR doesn't make sense here, as this is a cargo-specific concept
* | Replace roots with include/exclude directoriesAleksey Kladov2020-07-212-31/+32
| |
* | Expose package roots more directlyAleksey Kladov2020-07-211-30/+32
|/
* Add is_workspace_member for rust-project.jsonAleksey Kladov2020-07-201-24/+36
| | | | | | | | | | | It is currently unused, but, in the future, it will be used to: * drive certain UX (symbols search by default will look only in the members) * improve performance (rust-analyzer will assume that non-members change rarely) If not specified, is_workspace member is inferred from the path
* Add a license field to all the cratesYuki Okushi2020-07-141-0/+1
|
* Sort cargo metadataAleksey Kladov2020-07-101-2/+4
| | | | | | See https://github.com/rust-lang/cargo/issues/8477 We need this to prevent spurious workspace reloads
* Automatically reload project info on Cargo.toml changesAleksey Kladov2020-07-103-8/+8
|
* Replace ad hocery with scienceAleksey Kladov2020-07-071-1/+0
|
* AbsPathAleksey Kladov2020-07-051-3/+3
|
* Fallback to target in cfg if not specified in project json configPaul Daniel Faria2020-07-041-1/+1
|
* Add optional target to crates in json project, lookup default cfgs per ↵Paul Daniel Faria2020-07-042-1/+13
| | | | target when generating cfg list
* Move cargo metadata off the main loopAleksey Kladov2020-07-021-2/+2
|
* MinorAleksey Kladov2020-07-021-13/+1
|
* Automatically reload project on config changeAleksey Kladov2020-07-011-3/+3
|
* Use Strings for display namesAleksey Kladov2020-07-011-5/+3
|
* Use CrateName for semantic namesAleksey Kladov2020-07-012-8/+14
|
* Don't crash on empty out_dirs with older cargosAleksey Kladov2020-06-301-4/+13
| | | | closes #5125
* Cleanup project.json deserializationAleksey Kladov2020-06-244-110/+110
|
* Rename json_project -> project_jsonAleksey Kladov2020-06-242-9/+9
|
* Be more explicit about absolute paths at various placesAleksey Kladov2020-06-244-58/+59
|
* New VFSAleksey Kladov2020-06-231-14/+1
|
* Accept relative paths in rust-project.jsonThiébaud Weksteen2020-06-151-15/+17
| | | | | If a relative path is found as part of Crate.root_module or Root.path, interpret it as relative to the location of the rust-project.json file.
* Reduce OUT_DIR special casingAleksey Kladov2020-06-101-13/+7
|
* Merge #4824bors[bot]2020-06-101-1/+1
|\ | | | | | | | | | | | | | | 4824: Correct "debug_assertion" to "debug_assertions" to match the cfg that the rust debug assert macros use. r=matklad a=woody77 This is for #4823. Co-authored-by: Aaron Wood <[email protected]>
| * Correct "debug_assertion" to "debug_assertions" to match the cfgAaron Wood2020-06-101-1/+1
| | | | | | | | option that the rust debug assert macros use.
* | Finish transition to cfgs from the separate atoms and features.Aaron Wood2020-06-092-47/+1
|/
* Use Option<&str> for target instead of Option<&String>Paul Daniel Faria2020-06-081-3/+3
|
* Remove default_cfg_options, pass target instead so it can be used for ↵Paul Daniel Faria2020-06-081-13/+13
| | | | building cargo workspaces
* Change management of test cfg to better support json projectsPaul Daniel Faria2020-06-071-6/+7
|
* Document rust-project.jsonAleksey Kladov2020-06-031-2/+8
|
* Rename ProjectRoot -> ProjectManifestAleksey Kladov2020-06-031-15/+15
|
* Move project discoveryAleksey Kladov2020-06-031-2/+14
|
* Put important things on topAleksey Kladov2020-06-031-7/+7
|
* Merge pull request #4382 from woody77/json_cfgsAleksey Kladov2020-06-032-0/+89
|\ | | | | Begin transition to new fields for JsonProject crate cfgs
| * Begin transition to new fields for JsonProject crate cfgsAaron Wood2020-05-092-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | This starts the transition to a new method of documenting the cfgs that are enabled for a given crate in the json file. This is changing from a list of atoms and a dict of key:value pairs, to a list of strings that is equivalent to that returned by `rustc --print cfg ..`, and parsed in the same manner by rust-analyzer. This is the first of two changes, which adds the new field that contains the list of strings. Next change will complete the transition and remove the previous fields.
* | Disable rust-analyzer.{cargo,checkOnSave}.allFeatures by defaultLaurențiu Nicola2020-06-021-1/+1
| |
* | Make some stuff public so that they can be reused by other toolsPavan Kumar Sunkara2020-05-141-1/+1
| |
* | Merge #4406 #4410 #4411 #4417bors[bot]2020-05-102-10/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4406: Update cargo-metadata r=matklad a=edwin0cheng This PR update `cargo-metadata` to 0.10.0 and it also relax the` serde-derive` deps to 1.0 for tests in `proc-macro-srv`. cc @robojumper r= @matklad , I think you would have something to say related to https://github.com/serde-rs/json/issues/647#issue-593788429 ? 4410: Improve wording in comment r=matklad a=edwin0cheng 4411: do not remove then block when you unwrap else block #4361 r=matklad a=bnjjj close #4361 4417: Omit default types in HirDisplay SourceCode mode r=matklad a=TimoFreiberg Closes #4390 Co-authored-by: Edwin Cheng <[email protected]> Co-authored-by: Benjamin Coenen <[email protected]> Co-authored-by: Timo Freiberg <[email protected]>
| * | Update cargo-metadataEdwin Cheng2020-05-092-10/+6
| | |
* | | Simpify project discoveryveetaha2020-05-091-36/+15
| | |