rust/crates
bors[bot] c48dcf7411
Merge #3549
3549: Implement env! macro r=matklad a=edwin0cheng

This PR implements `env!` macro by adding following things:

1. Added `additional_outdirs` settings in vscode. (naming to be bikeshed)
2. Added `ExternSourceId` which is a wrapping for SourceRootId but only used in extern sources. It is because `OUT_DIR` is not belonged to any crate and we have to access it behind an `AstDatabase`.
3. This PR does not implement the `OUT_DIR` parsing from `cargo check`. I don't have general design about this,  @kiljacken could we reuse some cargo watch code for that ?

~~Block on [#3536]~~

PS: After this PR , we (kind of) completed the `include!(concat!(env!('OUT_DIR'),  "foo.rs")` macro call combo. [Exodia Obliterate!](https://www.youtube.com/watch?v=RfqNH3FoGi0)

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-11 10:51:07 +00:00
..
ra_arena
ra_assists Rerail split_import API onto AST 2020-03-06 14:08:43 +01:00
ra_cargo_watch Merge #3533 2020-03-09 14:38:20 +00:00
ra_cfg
ra_db Add extern source 2020-03-11 11:04:02 +08:00
ra_fmt When joining lines, unwrap trivial diverging blocks 2020-02-24 17:17:05 +01:00
ra_hir Simplify 2020-03-09 11:19:03 +01:00
ra_hir_def Add resolve_extern_path in DB 2020-03-11 01:06:01 +08:00
ra_hir_expand Add extern source 2020-03-11 11:04:02 +08:00
ra_hir_ty Merge #3549 2020-03-11 10:51:07 +00:00
ra_ide Merge #3549 2020-03-11 10:51:07 +00:00
ra_ide_db Merge #3549 2020-03-11 10:51:07 +00:00
ra_mbe Merge #3513 2020-03-09 08:56:58 +00:00
ra_parser Implement concat macro 2020-03-04 01:21:14 +08:00
ra_prof Allow specifying additional info on call to profile 2020-03-06 17:36:51 +01:00
ra_project_model Add extern source 2020-03-11 11:04:02 +08:00
ra_syntax Add parse_to_token_tree 2020-03-09 00:13:04 +08:00
ra_text_edit Remove unused dependencies 2020-02-27 14:04:13 +09:00
ra_tt
rust-analyzer Merge #3549 2020-03-11 10:51:07 +00:00
test_utils Check only one fixture 2020-03-11 00:45:03 +08:00