Skip to content

Instantly share code, notes, and snippets.

@tatsuya6502
Last active April 14, 2017 02:20
Show Gist options
  • Save tatsuya6502/6e7965edb19033027806f939163748ae to your computer and use it in GitHub Desktop.
Save tatsuya6502/6e7965edb19033027806f939163748ae to your computer and use it in GitHub Desktop.
Rust Language Server (RLS) - Working Revisions

Rust Language Server (RLS) - Working Revisions

IMPORTANT (April 14, 2017)

I will not update this table anymore as RLS is now available as a rustup component on a number of platforms (OS + CPU architecture). If you are using rustup to manage Rust toolchains and components, you will no longer need to build RLS by yourself. Here are some examples on Ubuntu 16.04 LTS:

$ source $HOME/.cargo/env
$ rustup -V
rustup 1.2.0 (70faf07 2017-04-08)
$ rustup update nightly
...
  nightly-x86_64-unknown-linux-gnu installed - rustc 1.18.0-nightly (28a742997 2017-04-13)
  
$ rustup component list --toolchain nightly | egrep '(rls|analysis|src)'
rls-x86_64-unknown-linux-gnu
rust-analysis-x86_64-unknown-linux-gnu
rust-src

$ rustup component add rls --toolchain nightly
$ rustup component add rust-analysis --toolchain nightly
$ rustup component add rust-src  --toolchain nightly

$ rls
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not have the binary `rls`

# It is working!
$ rustup run nightly rls

Content-Length: 83

{"jsonrpc": "2.0", "error": {"code": -32700, "message": "Parse error"}, "id": null} 

Available platforms (as of April 14, 2017)

% curl -s https://static.rust-lang.org/dist/channel-rust-nightly.toml | grep rls-nightly
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-aarch64-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-arm-unknown-linux-gnueabi.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-arm-unknown-linux-gnueabihf.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-armv7-unknown-linux-gnueabihf.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-i686-apple-darwin.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-i686-pc-windows-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-i686-pc-windows-msvc.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-i686-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-mips-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-mips64-unknown-linux-gnuabi64.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-mips64el-unknown-linux-gnuabi64.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-mipsel-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-powerpc-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-powerpc64-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-powerpc64le-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-s390x-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-apple-darwin.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-pc-windows-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-pc-windows-msvc.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-unknown-freebsd.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-unknown-linux-gnu.tar.gz"
url = "https://static.rust-lang.org/dist/2017-04-14/rls-nightly-x86_64-unknown-netbsd.tar.gz"

Working Combinations

Working combinations of RLS git branch (revision) and Rust toolchain version:

Date RLS Rust VS Code Rust for VS Code Remarks
Apr 08, 2017 master (32cd023) 1.18.0-nightly (53f4bc311 2017-04-07) 1.11.1 (Linux) 0.3.11
Apr 07, 2017 master (88fc39b) 1.18.0-nightly (91ae22a01 2017-04-05) 1.11.0 (Linux) 0.3.11
Apr 05, 2017 master (88fc39b) 1.18.0-nightly (2564711e8 2017-04-04) 1.10.2 (Linux) 0.3.10
Apr 03, 2017 master (dbb677d) 1.18.0-nightly (5e122f59b 2017-04-01) 1.10.2 (Linux) 0.3.10
Apr 01, 2017 master (c8c1af9) 1.18.0-nightly (40feadb96 2017-03-31) 1.10.2 (Linux) 0.3.10
Mar 25, 2017 master (40da310) 1.17.0-nightly (e703b33e3 2017-03-23) 1.10.2 (macOS) 0.3.10

About My Environment

  • Fedora 25 x86_64
  • Visual Studio Code (Linux) with Rust for Visual Studio Code extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment