Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename ra_toolchain -> toolchain | Aleksey Kladov | 2020-08-12 | 4 | -6/+6 |
| | |||||
* | Rename ra_arena | Aleksey Kladov | 2020-08-12 | 3 | -3/+3 |
| | |||||
* | Merge #5596 | bors[bot] | 2020-07-30 | 1 | -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 features | Clemens Wasser | 2020-07-30 | 1 | -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 polyfill | Aleksey Kladov | 2020-07-30 | 1 | -2/+2 |
| | | |||||
* | | Update sysroot crates | Laurențiu Nicola | 2020-07-30 | 1 | -31/+17 |
|/ | |||||
* | Add workaround for changing sysroot paths | Laurențiu Nicola | 2020-07-30 | 1 | -8/+34 |
| | |||||
* | cargo_metadata 0.11.1 and cargo update | kjeremy | 2020-07-29 | 1 | -1/+1 |
| | |||||
* | Require quotes around key-value cfg flags in rust-project.json | Aleksey Kladov | 2020-07-23 | 5 | -70/+106 |
| | | | | This matches rustc command-line flags, as well as the build.rs format. | ||||
* | Merge #5505 | bors[bot] | 2020-07-23 | 1 | -4/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | 5505: Cleanup CFG API r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Cleanup CFG API | Aleksey Kladov | 2020-07-23 | 1 | -4/+4 |
| | | |||||
* | | More Rustic API for Env | Aleksey Kladov | 2020-07-21 | 1 | -4/+1 |
| | | |||||
* | | Replace OUT_DIR in project.json with general env | Aleksey Kladov | 2020-07-21 | 2 | -9/+7 |
| | | | | | | | | OUT_DIR doesn't make sense here, as this is a cargo-specific concept | ||||
* | | Replace roots with include/exclude directories | Aleksey Kladov | 2020-07-21 | 2 | -31/+32 |
| | | |||||
* | | Expose package roots more directly | Aleksey Kladov | 2020-07-21 | 1 | -30/+32 |
|/ | |||||
* | Add is_workspace_member for rust-project.json | Aleksey Kladov | 2020-07-20 | 1 | -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 crates | Yuki Okushi | 2020-07-14 | 1 | -0/+1 |
| | |||||
* | Sort cargo metadata | Aleksey Kladov | 2020-07-10 | 1 | -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 changes | Aleksey Kladov | 2020-07-10 | 3 | -8/+8 |
| | |||||
* | Replace ad hocery with science | Aleksey Kladov | 2020-07-07 | 1 | -1/+0 |
| | |||||
* | AbsPath | Aleksey Kladov | 2020-07-05 | 1 | -3/+3 |
| | |||||
* | Fallback to target in cfg if not specified in project json config | Paul Daniel Faria | 2020-07-04 | 1 | -1/+1 |
| | |||||
* | Add optional target to crates in json project, lookup default cfgs per ↵ | Paul Daniel Faria | 2020-07-04 | 2 | -1/+13 |
| | | | | target when generating cfg list | ||||
* | Move cargo metadata off the main loop | Aleksey Kladov | 2020-07-02 | 1 | -2/+2 |
| | |||||
* | Minor | Aleksey Kladov | 2020-07-02 | 1 | -13/+1 |
| | |||||
* | Automatically reload project on config change | Aleksey Kladov | 2020-07-01 | 1 | -3/+3 |
| | |||||
* | Use Strings for display names | Aleksey Kladov | 2020-07-01 | 1 | -5/+3 |
| | |||||
* | Use CrateName for semantic names | Aleksey Kladov | 2020-07-01 | 2 | -8/+14 |
| | |||||
* | Don't crash on empty out_dirs with older cargos | Aleksey Kladov | 2020-06-30 | 1 | -4/+13 |
| | | | | closes #5125 | ||||
* | Cleanup project.json deserialization | Aleksey Kladov | 2020-06-24 | 4 | -110/+110 |
| | |||||
* | Rename json_project -> project_json | Aleksey Kladov | 2020-06-24 | 2 | -9/+9 |
| | |||||
* | Be more explicit about absolute paths at various places | Aleksey Kladov | 2020-06-24 | 4 | -58/+59 |
| | |||||
* | New VFS | Aleksey Kladov | 2020-06-23 | 1 | -14/+1 |
| | |||||
* | Accept relative paths in rust-project.json | Thiébaud Weksteen | 2020-06-15 | 1 | -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 casing | Aleksey Kladov | 2020-06-10 | 1 | -13/+7 |
| | |||||
* | Merge #4824 | bors[bot] | 2020-06-10 | 1 | -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 cfg | Aaron Wood | 2020-06-10 | 1 | -1/+1 |
| | | | | | | | | option that the rust debug assert macros use. | ||||
* | | Finish transition to cfgs from the separate atoms and features. | Aaron Wood | 2020-06-09 | 2 | -47/+1 |
|/ | |||||
* | Use Option<&str> for target instead of Option<&String> | Paul Daniel Faria | 2020-06-08 | 1 | -3/+3 |
| | |||||
* | Remove default_cfg_options, pass target instead so it can be used for ↵ | Paul Daniel Faria | 2020-06-08 | 1 | -13/+13 |
| | | | | building cargo workspaces | ||||
* | Change management of test cfg to better support json projects | Paul Daniel Faria | 2020-06-07 | 1 | -6/+7 |
| | |||||
* | Document rust-project.json | Aleksey Kladov | 2020-06-03 | 1 | -2/+8 |
| | |||||
* | Rename ProjectRoot -> ProjectManifest | Aleksey Kladov | 2020-06-03 | 1 | -15/+15 |
| | |||||
* | Move project discovery | Aleksey Kladov | 2020-06-03 | 1 | -2/+14 |
| | |||||
* | Put important things on top | Aleksey Kladov | 2020-06-03 | 1 | -7/+7 |
| | |||||
* | Merge pull request #4382 from woody77/json_cfgs | Aleksey Kladov | 2020-06-03 | 2 | -0/+89 |
|\ | | | | | Begin transition to new fields for JsonProject crate cfgs | ||||
| * | Begin transition to new fields for JsonProject crate cfgs | Aaron Wood | 2020-05-09 | 2 | -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 default | Laurențiu Nicola | 2020-06-02 | 1 | -1/+1 |
| | | |||||
* | | Make some stuff public so that they can be reused by other tools | Pavan Kumar Sunkara | 2020-05-14 | 1 | -1/+1 |
| | | |||||
* | | Merge #4406 #4410 #4411 #4417 | bors[bot] | 2020-05-10 | 2 | -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]> |