rls/rls-rustc
Igor Matuszewski ac4648b651 Adapt to rust-lang/rust#0ed9c64c3e 2022-07-14 16:58:03 +02:00
..
src Adapt to rust-lang/rust#0ed9c64c3e 2022-07-14 16:58:03 +02:00
.gitignore Remove unnecessary #![feature]s 2019-02-24 20:47:14 +01:00
COPYRIGHT Move rls-rustc crate 2019-02-13 15:26:59 +01:00
Cargo.toml Upgrade overlookd dependencies 2022-01-15 16:40:25 +01:00
LICENSE-APACHE Move rls-rustc crate 2019-02-13 15:26:59 +01:00
LICENSE-MIT Move rls-rustc crate 2019-02-13 15:26:59 +01:00
README.md Move rls-rustc crate 2019-02-13 15:26:59 +01:00

README.md

rls-rustc

A simple shim around rustc to allow using save-analysis with a stable toolchain

Building and running

cargo build or cargo run

You probably want to use --release

Support

File an issue or ping nrc in #rust-dev-tools

Implementation

The compiler has an extensible driver interface. The main API is the CompilerCalls trait. A tool can emulate the compiler, but adjust operation by implementing that trait. This shim does exactly that, using nearly all the defaults, but setting some properties that are useful for tools. These are usually only available by using a nightly toolchain, but by using this shim, can be used on stable.

In the future we might want to make the properties we set configurable.