Stream: t-compiler/wg-rls-2.0

Topic: Using rust-project.json


woody77 (Jun 04 2020 at 16:39, on Zulip):

@matklad

Do you have some time to chat about how to best utilize rust-project.json (now and what you're envisioning for the future?)

matklad (Jun 04 2020 at 16:40, on Zulip):

In general, yes, but not right now :)

woody77 (Jun 04 2020 at 16:53, on Zulip):

Drop me a line when you have time (woody77 at gmail works just fine).

John Hughes (Jun 24 2020 at 10:34, on Zulip):

Hi @matklad , was wondering if you could answer a few questions regarind rust-project.json --

  1. The rust-project.json-example linked from the user documentation in rust-analyzer doesn't exist.
  2. It seems like I also need to explicitly add all the stdlib deps, is there a way to generate this from something?
    Thanks :)
matklad (Jun 24 2020 at 10:36, on Zulip):
  1. https://github.com/rust-analyzer/rust-project.json-example
  2. no, sysroot deps need to be manually specified
John Hughes (Jun 24 2020 at 10:44, on Zulip):

I get 404 not found on rust-project.json-example

bjorn3 (Jun 24 2020 at 10:44, on Zulip):

@matklad It is marked as private.

matklad (Jun 24 2020 at 10:48, on Zulip):

oups, fixed!

John Hughes (Jun 24 2020 at 10:53, on Zulip):

Thanks!

Philipp Hansch (Jul 15 2020 at 08:37, on Zulip):

hm, @matklad shouldn't there be a rust-project.json file in the example repository? https://github.com/rust-analyzer/rust-project.json-example

Philipp Hansch (Jul 15 2020 at 08:38, on Zulip):

(currently trying to figure out if we can use it to make RA work with Clippy+rustc deps)

matklad (Jul 15 2020 at 08:39, on Zulip):

it is specified inline in .vscode/settings.json

Philipp Hansch (Jul 15 2020 at 08:39, on Zulip):

ohh, thanks :)

matklad (Jul 15 2020 at 08:40, on Zulip):

Note that the example is somewhat bad, so if you do any improvements during research, feel free to PR :)

Last update: Sep 27 2020 at 13:45UTC