]> git.lizzy.rs Git - rust.git/commit
Merge #6761
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Tue, 8 Dec 2020 18:21:28 +0000 (18:21 +0000)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 18:21:28 +0000 (18:21 +0000)
commitb3ceee2a2764a64318d16708a3ce2d281611bd26
treef78ffdaa994c9bce879d6f01e79bd3686a51d963
parent87e35006362686b281caf46550c0fff35cddefb4
parent2544abbf867a7660bc2c9342181c8392774f1cca
Merge #6761

6761: Make config.rs a single source of truth for configuration. r=matklad a=matklad

Configuration is editor-independent. For this reason, we pick
JSON-schema as the repr of the source of truth. We do specify it using
rust-macros and some quick&dirty hackery though.

The idea for syncing truth with package.json is to just do that
manually, but there's a test to check that they are actually synced.

I'll add something like `rust-analyzer --config-schema` in a follow-up
commit.

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>