cargo-rls-install
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
Preparing for installation (Linux only)
For Linux, it is necessary to install OpenSSL for installation.
# Ubuntu or Debian
# WSL(Windows Subsystem for Linux)
# RedHut
# RedHut(Fedora etc.)
Usage
Example1
Three operations are executed by the above command.
- Rust Language(Nightly channel) install.
- RLS(Rust Language Server) install.
- Change default toolchain.
Before executing each operation, ask whether to execute it.
Example2
All operations are done without approval until the end.
Example3
Install Stable Rust, RLS and change the default toolchain.
Example4
Install Beta Rust, RLS and change the default toolchain.
Example5
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-)
Check the build status of Rust and RLS.
This command is intended for use alone.
# or
Example7(v1.0.23-)
Installs the specified component. Use rustup component add
command.
# example: rustfmt
Example8(v1.0.25-)
Note: Changes the selected Rust channel to the default toolchain. Use rustup default
command.
If you specify cargo rls-instrall -d n
, Nightly Rust with the most recent date will be specified as the default toolchain.
# Use stable
# Use beta
# Use target beta(v1.0.28-)
# Use nightly
# Use latest nightly rust toolchain
# Use target nightly rust toolchain
Example9(v1.0.28-)
Uninstall the selected Rust channel. Use rustup uninstall
command.
Note: Latest nightly rust and default toolchain isn't eligible for uninstallation.
# Uninstall stable
# Uninstall beta
# Uninstall target beta
# Uninstall nightly
# Uninstall target nightly
# Uninstall all but the latest nightly rust dated
Example10(v2.0.4-)
Nightly Rust will be installed on the date you choose.
Example11(v2.0.5-)
Show installed toolchains. Use rustup show
command.
Example12(v2.0.5-)
Install formatter tools: clippy and rustfmt. Use rustup component add
command.
Flags
)
)
)
)
)