cargo-rls-install 1.0.24

Rust Language Server easy install.
docs.rs failed to build cargo-rls-install-1.0.24
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

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.

Example7(v1.0.23-)

cargo rls-install -f # --rustfmt
cargo rls-install -c rustfmt # --comp-add rustfmt

Install component(example: rustfmt). Use rustup component add command.

Flags

USAGE:
    cargo-rls-install.exe rls-install [FLAGS] [OPTIONS]

FLAGS:
    -b, --beta       Install beta channel Rust and RLS
    -h, --help       Prints help information
    -n, --nightly    Install nightly channel Rust and RLS
    -f, --rustfmt    Install rustfmt
    -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

OPTIONS:
    -c, --comp-add <comp_add>    Wrapper(rustup component add [argument])

Special thanks

mexus