#cli #cargo #cargo-subcommand #rust-language-server #install-rls-instead

bin+lib cargo-rls-install

Rust Language Server easy install

22 stable releases

✓ Uses Rust 2018 edition

new 1.0.21 Apr 12, 2019
1.0.20 Mar 28, 2019

#47 in Cargo plugins

Download history 124/week @ 2019-03-01 61/week @ 2019-03-08 76/week @ 2019-03-15 233/week @ 2019-03-22 20/week @ 2019-03-29 44/week @ 2019-04-05

187 downloads per month

MIT license

31KB
708 lines

cargo-rls-install

Build Status Build status

Purpose

Rust Language Server easy install

Every night, I look for a day when I can use RLS which may be broken.
In order to realize it, this program goes to see the page that mexus's scripts updates everyday, and scrapes it.

If we had no mexus page in the first place, we would have never made Cargo subcommand,
nor did I feel like using Rust.

Installation

cargo install cargo-rls-install

Preparing for installation (Linux only)

For Linux, it is necessary to install OpenSSL for installation.

# Ubuntu or Debian
sudo apt install libssl-dev

# WSL(Windows Subsystem for Linux)
sudo apt install libssl-dev
sudo apt install build-essential
sudo apt install pkg-config

# RedHut
sudo yum install openssl-devel

# RedHut(Fedora etc.)
sudo dnf install openssl

Usage

cargo rls-install [FLAGS]

Example1

cargo rls-install -n # --nightly

Three operations are executed by the above command.

  1. Rust Language(Nightly channel) install.
  2. RLS(Rust Language Server) install.
  3. Change default toolchain.

Before executing each operation, ask whether to execute it.

Example2

cargo rls-install -ny # --nightly --yes

All operations are done without approval until the end.

Example3

cargo rls-install -s # --stable

Install Stable Rust and RLS and change the default toolchain.

Example4

cargo rls-install -b # --beta

Install Beta Rust and RLS and change the default toolchain.

Example5

cargo rls-install -ysbn

Install RLS on all Rust channels. The default toolchain is Nightly Rust, as the last operation on Nightly Rust is done.

Example6(v1.0.17~)

cargo rls-install -v # --view

Check the build status of Rust and RLS. This command is intended to be used only by itself.

Flags

-b, --beta       Install beta channel Rust and RLS
-h, --help       Prints help information
-n, --nightly    Install nightly channel Rust and RLS
-s, --stable     Install stable channel Rust and RLS
-V, --version    Prints version information
-v, --view       RLS build status view
-y, --yes        Pre-approval Rust and RLS install and rustup default command

Special thanks

mexus

Dependencies

~20MB
~419K SLoC