lang/rust: update prerequisites in README #1827

This commit is contained in:
Henrik Lissner 2019-09-26 13:41:05 -04:00
parent 737407dcec
commit bb68bcb80a
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -40,13 +40,14 @@ To get started with Rust, you can either use =rustup= and install rust with:
Package manager is not recommended to install Nightly version of Rust what is
required for ~racer~ from [[https://github.com/racer-rust/racer#installation][version 2.1]] (more info in [[#Troubleshooting][Troubleshooting]])
Some commands require additional crates to be installed to work, e.g. ~cargo
add~.
#+BEGIN_SRC sh
rustup component add rustfmt
rustup component add cargo-check
rustup component add cargo-edit
#+END_SRC
Some features have additional dependencies:
+ The ~:editor format~ module uses ~rustfmt~ for rust files: ~rustup component
add rustfmt-preview~
+ The following commands require:
+ ~cargo-process-check~: ~cargo install cargo-check~
+ ~cargo-process-clippy~: ~cargo install clippy~
+ ~cargo-process-{add,rm,upgrade}~: ~cargo install cargo-edit~
* Features
This module also supports LSP, it requires installation of Rust Language Server